Browse Source

Inform clang when we're building for iOS

Apparently it needs an extra argument to tell it as such beyond just the
sysroot.
add-rc-path
Alex Crichton 9 years ago
parent
commit
5e8565c6c5
  1. 2
      src/lib.rs

2
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"
}
};

Loading…
Cancel
Save