about summary refs log tree commit diff
path: root/compiler/rustc_plugin_impl/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-20 09:46:51 +0100
committerGitHub <noreply@github.com>2023-03-20 09:46:51 +0100
commit96d5dd6fca93322babc1caa531aa789f4e82ecf6 (patch)
tree30cdc005fdbe24e4425748c5e802ccf91a1848c2 /compiler/rustc_plugin_impl/src
parente91364bcf5100017a8bd5b18cdebefdd3e5f0bb1 (diff)
parentd10b113b355a49aa2bb1552e96c48b19b7846c27 (diff)
downloadrust-96d5dd6fca93322babc1caa531aa789f4e82ecf6.tar.gz
rust-96d5dd6fca93322babc1caa531aa789f4e82ecf6.zip
Rollup merge of #109170 - eggyal:xc-linux-cmake, r=Mark-Simulacrum
Set `CMAKE_SYSTEM_NAME` for Linux targets

When bootstrap compiles native dependencies like LLVM, it should set `CMAKE_SYSTEM_NAME` for the target system; otherwise cmake may not identify that it is cross-compiling.

In particular, when building a Linux rustc on a macOS host, cmake was including `-isysroot /path/to/macOS.sdk` options that caused things to break.  By setting `CMAKE_SYSTEM_NAME=Linux` when building for Linux targets, the macOS SDK is no longer passed as sysroot to the compiler.

r? bootstrap
Diffstat (limited to 'compiler/rustc_plugin_impl/src')
0 files changed, 0 insertions, 0 deletions