about summary refs log tree commit diff
path: root/compiler/rustc_plugin_impl/src
diff options
context:
space:
mode:
authorAlan Egerton <eggyal@gmail.com>2023-03-15 14:56:53 +0000
committerAlan Egerton <eggyal@gmail.com>2023-03-15 14:57:59 +0000
commitd10b113b355a49aa2bb1552e96c48b19b7846c27 (patch)
tree2f4203d1781ba494b8140888c7b5df631db0f14b /compiler/rustc_plugin_impl/src
parente4b9f86054c581d931f8bad0c87523c53e1e8e3f (diff)
downloadrust-d10b113b355a49aa2bb1552e96c48b19b7846c27.tar.gz
rust-d10b113b355a49aa2bb1552e96c48b19b7846c27.zip
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.
Diffstat (limited to 'compiler/rustc_plugin_impl/src')
0 files changed, 0 insertions, 0 deletions