From 5e8565c6c54114816613d3fe35ca17646191ebf5 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 19 Sep 2015 23:18:26 -0700 Subject: [PATCH] Inform clang when we're building for iOS Apparently it needs an extra argument to tell it as such beyond just the sysroot. --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index f2294ae..61f768a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -499,10 +499,12 @@ impl Config { let sdk = match arch { ArchSpec::Device(arch) => { cmd.arg("-arch").arg(arch); + cmd.arg("-miphoneos-version-min=7.0"); "iphoneos" }, ArchSpec::Simulator(arch) => { cmd.arg(arch); + cmd.arg("-mios-simulator-version-min=7.0"); "iphonesimulator" } };