about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/native.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs
index c10e8723422..8d50dd0a904 100644
--- a/src/bootstrap/native.rs
+++ b/src/bootstrap/native.rs
@@ -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(" ");