Skip to content

Commit 1de6212

Browse files
committed
bootstrap: Pass system names to cmake for iOS and Darwin
1 parent f968c86 commit 1de6212

File tree

1 file changed

+4
-0
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+4
-0
lines changed

src/bootstrap/src/core/build_steps/llvm.rs

+4
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,10 @@ fn configure_cmake(
657657
cfg.define("CMAKE_SYSTEM_NAME", "SunOS");
658658
} else if target.contains("linux") {
659659
cfg.define("CMAKE_SYSTEM_NAME", "Linux");
660+
} else if target.contains("darwin") {
661+
cfg.define("CMAKE_SYSTEM_NAME", "Darwin");
662+
} else if target.contains("apple-ios") {
663+
cfg.define("CMAKE_SYSTEM_NAME", "iOS");
660664
} else {
661665
builder.info(&format!(
662666
"could not determine CMAKE_SYSTEM_NAME from the target `{target}`, build may fail",

0 commit comments

Comments
 (0)