microsoft/openvmm
Publicmirrored fromhttps://github.com/microsoft/openvmmAvailable
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] |
| 14 | CC_aarch64_pc_windows_msvc = { value = "windows_cross/aarch64-clang-cl", relative = true } |
| 15 | AR_aarch64_pc_windows_msvc = { value = "windows_cross/aarch64-llvm-lib", relative = true } |
| 16 | RC_aarch64_pc_windows_msvc = { value = "windows_cross/aarch64-llvm-rc", relative = true } |
| 17 | DLLTOOL_aarch64_pc_windows_msvc = { value = "windows_cross/aarch64-llvm-dlltool", relative = true } |
| 18 | MIDLRT_aarch64_pc_windows_msvc = { value = "windows_cross/aarch64-midlrt.exe", relative = true } |
| 19 | CC_x86_64_pc_windows_msvc = { value = "windows_cross/x86_64-clang-cl", relative = true } |
| 20 | AR_x86_64_pc_windows_msvc = { value = "windows_cross/x86_64-llvm-lib", relative = true } |
| 21 | RC_x86_64_pc_windows_msvc = { value = "windows_cross/x86_64-llvm-rc", relative = true } |
| 22 | DLLTOOL_x86_64_pc_windows_msvc = { value = "windows_cross/x86_64-llvm-dlltool", relative = true } |
| 23 | MIDLRT_x86_64_pc_windows_msvc = { value = "windows_cross/x86_64-midlrt.exe", relative = true } |
| 24 | OPENVMM_WINDOWS_CROSS_TOOL = { value = "windows_cross/cross_tool.py", relative = true } |
| 25 | |
| 26 | [target.x86_64-pc-windows-msvc] |
| 27 | linker = "windows_cross/x86_64-lld-link" |
| 28 | [target.aarch64-pc-windows-msvc] |
| 29 | linker = "windows_cross/aarch64-lld-link" |
| 30 | |