]> git.lizzy.rs Git - rust.git/commitdiff
Don't break on iOS Simulator builds.
authoraspen <luxx4x@protonmail.com>
Tue, 30 Jun 2020 22:18:19 +0000 (18:18 -0400)
committeraspen <luxx4x@protonmail.com>
Tue, 30 Jun 2020 22:18:19 +0000 (18:18 -0400)
src/bootstrap/native.rs

index c10e8723422a992ab5118641e365735f4f3257d1..8d50dd0a9043be4acb50732c5481526486eb7d9a 100644 (file)
@@ -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(" ");