about summary refs log tree commit diff
path: root/src/librustc_target
diff options
context:
space:
mode:
authorSimonas Kazlauskas <git@kazlauskas.me>2018-12-15 00:47:06 +0200
committerSimonas Kazlauskas <git@kazlauskas.me>2018-12-15 01:13:32 +0200
commit313a9c7090522872ef95cf3e573e9a00b9e7a97b (patch)
tree57e2f767382dd94d969d6f20d5b7495dab6f5e85 /src/librustc_target
parent9fe5cb5342244a716055fa0162e795deabd4985c (diff)
downloadrust-313a9c7090522872ef95cf3e573e9a00b9e7a97b.tar.gz
rust-313a9c7090522872ef95cf3e573e9a00b9e7a97b.zip
Provide -isysroot with sdkroot for ios builds
Necessary for the new XCode?
Diffstat (limited to 'src/librustc_target')
-rw-r--r--src/librustc_target/spec/apple_ios_base.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc_target/spec/apple_ios_base.rs b/src/librustc_target/spec/apple_ios_base.rs
index e926e4913d6..ef41ea31e3e 100644
--- a/src/librustc_target/spec/apple_ios_base.rs
+++ b/src/librustc_target/spec/apple_ios_base.rs
@@ -74,6 +74,8 @@ fn build_pre_link_args(arch: Arch) -> Result<LinkArgs, String> {
     args.insert(LinkerFlavor::Gcc,
                 vec!["-arch".to_string(),
                      arch_name.to_string(),
+                     "-isysroot".to_string(),
+                     sdk_root.clone(),
                      "-Wl,-syslibroot".to_string(),
                      sdk_root]);