]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #98328 - topjohnwu:fix_cross, r=jyn514
authorbors <bors@rust-lang.org>
Sat, 9 Jul 2022 10:45:30 +0000 (10:45 +0000)
committerbors <bors@rust-lang.org>
Sat, 9 Jul 2022 10:45:30 +0000 (10:45 +0000)
commit73443a05908b0f8043659295a854295013987876
treed35ad3a029c3ca901f591b66380307f0a7c2b038
parentc4693bc946729393c087fb120af566395915d19d
parent600026ac9473e75729e67b38036e7deaffbe2a20
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.
src/bootstrap/native.rs