Skip to content

Commit

Permalink
Don't break on iOS Simulator builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
aspen committed Jun 30, 2020
1 parent c22bcb0 commit 5f3dbd8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bootstrap/native.rs
Expand Up @@ -421,7 +421,11 @@ fn configure_cmake(
cflags.push_str(&format!(" {}", s));
}
if target.contains("apple-ios") {
cflags.push_str(" -miphoneos-version-min=10.0");
if target.contains("86-") {
cflags.push_str(" -miphonesimulator-version-min=10.0");
} else {
cflags.push_str(" -miphoneos-version-min=10.0");
}
}
cfg.define("CMAKE_C_FLAGS", cflags);
let mut cxxflags = builder.cflags(target, GitRepo::Llvm).join(" ");
Expand Down

0 comments on commit 5f3dbd8

Please sign in to comment.