Skip to content

Commit a23d5ed

Browse files
committed
Auto merge of #56833 - nagisa:ios-fix, r=alexcrichton
Provide -isysroot with sdkroot for ios builds Necessary for the new XCode? Absolutely positively definitely untested… although I did ``` cargo rustc -- -Clink-arg=-isysroot -Clink-arg=$sdk_root ``` and stuff did compile for once.
2 parents 7fb479c + 313a9c7 commit a23d5ed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc_target/spec/apple_ios_base.rs

+2
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)