We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9cb15d commit e8704e8Copy full SHA for e8704e8
src/bootstrap/src/core/build_steps/llvm.rs
@@ -697,6 +697,14 @@ fn configure_cmake(
697
// reported, the system version is currently left unset.
698
699
if target.contains("apple") {
700
+ if !target.contains("darwin") {
701
+ // FIXME(madsmtm): compiler-rt's CMake setup is kinda weird, it seems like they do
702
+ // version testing etc. for macOS (i.e. Darwin), even while building for iOS?
703
+ //
704
+ // So for now we set it to "Darwin" on all Apple platforms.
705
+ cfg.define("CMAKE_SYSTEM_NAME", "Darwin");
706
+ }
707
+
708
// Make sure that CMake does not build universal binaries on macOS.
709
// Explicitly specify the one single target architecture.
710
if target.starts_with("aarch64") {
0 commit comments