about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorArlo Siemsen <arsiem@microsoft.com>2020-07-02 10:45:10 -0700
committerArlo Siemsen <arsiem@microsoft.com>2020-07-08 08:19:50 -0700
commit59f979fa06fed49e02606d4891b5b5e4fc545725 (patch)
treec987bdb865adbf94ad8ad0adb1874578aca92b9b /src/test/codegen/src-hash-algorithm
parent1d919c9377f4602d991ca1c7ba852e7555943740 (diff)
downloadrust-59f979fa06fed49e02606d4891b5b5e4fc545725.tar.gz
rust-59f979fa06fed49e02606d4891b5b5e4fc545725.zip
Fix cross-compilation of LLVM to aarch64 Windows targets
When cross-compiling, the LLVM build system recurses to build tools
that need to run on the host system. However, since we pass cmake defines
to set the compiler and target, LLVM still compiles these tools for the
target system, rather than the host. The tools then fail to execute
during the LLVM build.

This change sets defines for the tools that need to run on the
host (llvm-nm, llvm-tablegen, and llvm-config), so that the LLVM build
does not attempt to build them, and instead relies on the tools already built.

If compiling with clang-cl, this change also adds the `--target` option
to specify the target triple. MSVC compilers do not require this, since there
is a separate compiler binary for cross-compilation.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions