Skip to content

Commit

Permalink
Fix sdkname for tvos simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
simlay committed Sep 13, 2023
1 parent f073fac commit 2ebd8f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_codegen_ssa/src/back/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2877,6 +2877,7 @@ fn add_apple_sdk(cmd: &mut dyn Linker, sess: &Session, flavor: LinkerFlavor) {
}

let sdk_name = match (arch.as_ref(), os.as_ref()) {
("aarch64", "tvos") if llvm_target.ends_with("-simulator") => "appletvsimulator",
("aarch64", "tvos") => "appletvos",
("x86_64", "tvos") => "appletvsimulator",
("arm", "ios") => "iphoneos",
Expand Down

0 comments on commit 2ebd8f7

Please sign in to comment.