microsoft/openvmm

Public

mirrored fromhttps://github.com/microsoft/openvmmAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0d125a9d06175f274814a0b6eb76cf75079c0463

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

build_support/windows_cross/config.toml

29lines · modecode

1# Copyright (c) Microsoft Corporation.
2# Licensed under the MIT License.
3
4# Configure cargo to build Windows binaries from WSL using the LLVM toolchain and
5# the libraries and include files from your Visual Studio installation.
6#
7# Use this via `cargo build --target x86_64-pc-windows-msvc --config build_support/windows_cross/config.toml`.
8#
9# Alternatively, to set this globally for your user, copy the `windows_cross`
10# directory into your home directory and copy the contents of this file into
11# your `~/.cargo/config.toml`.
12
13[env]
14CC_aarch64_pc_windows_msvc = { value = "windows_cross/aarch64-clang-cl", relative = true }
15AR_aarch64_pc_windows_msvc = { value = "windows_cross/aarch64-llvm-lib", relative = true }
16RC_aarch64_pc_windows_msvc = { value = "windows_cross/aarch64-llvm-rc", relative = true }
17DLLTOOL_aarch64_pc_windows_msvc = { value = "windows_cross/aarch64-llvm-dlltool", relative = true }
18MIDLRT_aarch64_pc_windows_msvc = { value = "windows_cross/aarch64-midlrt.exe", relative = true }
19CC_x86_64_pc_windows_msvc = { value = "windows_cross/x86_64-clang-cl", relative = true }
20AR_x86_64_pc_windows_msvc = { value = "windows_cross/x86_64-llvm-lib", relative = true }
21RC_x86_64_pc_windows_msvc = { value = "windows_cross/x86_64-llvm-rc", relative = true }
22DLLTOOL_x86_64_pc_windows_msvc = { value = "windows_cross/x86_64-llvm-dlltool", relative = true }
23MIDLRT_x86_64_pc_windows_msvc = { value = "windows_cross/x86_64-midlrt.exe", relative = true }
24OPENVMM_WINDOWS_CROSS_TOOL = { value = "windows_cross/cross_tool.py", relative = true }
25
26[target.x86_64-pc-windows-msvc]
27linker = "windows_cross/x86_64-lld-link"
28[target.aarch64-pc-windows-msvc]
29linker = "windows_cross/aarch64-lld-link"
30