Skip to content

Commit 313a9c7

Browse files
committed
Provide -isysroot with sdkroot for ios builds
Necessary for the new XCode?
1 parent 9fe5cb5 commit 313a9c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_target/spec/apple_ios_base.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ fn build_pre_link_args(arch: Arch) -> Result<LinkArgs, String> {
7474
args.insert(LinkerFlavor::Gcc,
7575
vec!["-arch".to_string(),
7676
arch_name.to_string(),
77+
"-isysroot".to_string(),
78+
sdk_root.clone(),
7779
"-Wl,-syslibroot".to_string(),
7880
sdk_root]);
7981

0 commit comments

Comments
 (0)