diff options
| author | Benedikt Terhechte <terhechte@gmail.com> | 2020-10-03 14:46:58 +0200 |
|---|---|---|
| committer | Benedikt Terhechte <terhechte@gmail.com> | 2020-11-26 11:31:59 +0100 |
| commit | 96779647c45b570648d1250987a6e756f0f9eb4b (patch) | |
| tree | fb72f341cfab6b2f93fec1c58be22c93b31a8704 /compiler/rustc_codegen_ssa/src/back | |
| parent | 0d9651648d3b741e81ba7042e49a07b78a441517 (diff) | |
| download | rust-96779647c45b570648d1250987a6e756f0f9eb4b.tar.gz rust-96779647c45b570648d1250987a6e756f0f9eb4b.zip | |
Add support for Arm64 Catalyst on ARM Macs
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/link.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs index 5a627a0efa3..22e2aa3b5c8 100644 --- a/compiler/rustc_codegen_ssa/src/back/link.rs +++ b/compiler/rustc_codegen_ssa/src/back/link.rs @@ -2090,9 +2090,10 @@ fn add_apple_sdk(cmd: &mut dyn Linker, sess: &Session, flavor: LinkerFlavor) { ("aarch64", "tvos") => "appletvos", ("x86_64", "tvos") => "appletvsimulator", ("arm", "ios") => "iphoneos", + ("aarch64", "ios") if llvm_target.contains("macabi") => "macosx", ("aarch64", "ios") => "iphoneos", ("x86", "ios") => "iphonesimulator", - ("x86_64", "ios") if llvm_target.contains("macabi") => "macosx10.15", + ("x86_64", "ios") if llvm_target.contains("macabi") => "macosx", ("x86_64", "ios") => "iphonesimulator", _ => { sess.err(&format!("unsupported arch `{}` for os `{}`", arch, os)); |
