Skip to content

Commit 5f3dbd8

Browse files
author
aspen
committed
Don't break on iOS Simulator builds.
1 parent c22bcb0 commit 5f3dbd8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bootstrap/native.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,11 @@ fn configure_cmake(
421421
cflags.push_str(&format!(" {}", s));
422422
}
423423
if target.contains("apple-ios") {
424-
cflags.push_str(" -miphoneos-version-min=10.0");
424+
if target.contains("86-") {
425+
cflags.push_str(" -miphonesimulator-version-min=10.0");
426+
} else {
427+
cflags.push_str(" -miphoneos-version-min=10.0");
428+
}
425429
}
426430
cfg.define("CMAKE_C_FLAGS", cflags);
427431
let mut cxxflags = builder.cflags(target, GitRepo::Llvm).join(" ");

0 commit comments

Comments
 (0)