From 5f3dbd83af1a2872ec2514ea1a18116b800e4aeb Mon Sep 17 00:00:00 2001 From: aspen Date: Tue, 30 Jun 2020 18:18:19 -0400 Subject: [PATCH] Don't break on iOS Simulator builds. --- src/bootstrap/native.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(" "); -- 2.44.0