microsoft/openvmm

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
b2022a9e898bbe95b50f3f79a32a3e254fef338b

Branches

Tags

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

Clone

HTTPS

Download ZIP

build_support/windows_cross/config.toml

26lines · 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 }
18CC_x86_64_pc_windows_msvc = { value = "windows_cross/x86_64-clang-cl", relative = true }
19AR_x86_64_pc_windows_msvc = { value = "windows_cross/x86_64-llvm-lib", relative = true }
20RC_x86_64_pc_windows_msvc = { value = "windows_cross/x86_64-llvm-rc", relative = true }
21DLLTOOL_x86_64_pc_windows_msvc = { value = "windows_cross/x86_64-llvm-dlltool", relative = true }
22
23[target.x86_64-pc-windows-msvc]
24linker = "windows_cross/x86_64-lld-link"
25[target.aarch64-pc-windows-msvc]
26linker = "windows_cross/aarch64-lld-link"
27