about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-09 10:45:30 +0000
committerbors <bors@rust-lang.org>2022-07-09 10:45:30 +0000
commit73443a05908b0f8043659295a854295013987876 (patch)
treed35ad3a029c3ca901f591b66380307f0a7c2b038 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parentc4693bc946729393c087fb120af566395915d19d (diff)
parent600026ac9473e75729e67b38036e7deaffbe2a20 (diff)
downloadrust-73443a05908b0f8043659295a854295013987876.tar.gz
rust-73443a05908b0f8043659295a854295013987876.zip
Auto merge of #98328 - topjohnwu:fix_cross, r=jyn514
Fix several issues during cross compiling

- When cross compiling LLVM on an arm64 macOS machine to x86_64, CMake will produce universal binaries by default, causing link errors. Explicitly set `CMAKE_OSX_ARCHITECTURES` to the one single target architecture so that the executables and libraries will be single architecture.
- When cross compiling rustc with `llvm.clang = true`, `CLANG_TABLEGEN` has to be set to the host `clang-tblgen` executable to build clang.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions