Skip to content

Commit 77b7145

Browse files
committed
Building correct binaries.
1 parent bf09ddd commit 77b7145

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

compiler/rustc_codegen_ssa/src/back/link.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2101,10 +2101,10 @@ fn add_apple_sdk(cmd: &mut dyn Linker, sess: &Session, flavor: LinkerFlavor) {
21012101
("aarch64", "tvos") => "appletvos",
21022102
("x86_64", "tvos") => "appletvsimulator",
21032103
("arm", "ios") => "iphoneos",
2104-
("aarch64", "ios") if llvm_target.contains("macabi") => "macos11",
2104+
("aarch64", "ios") if llvm_target.contains("macabi") => "macosx",
21052105
("aarch64", "ios") => "iphoneos",
21062106
("x86", "ios") => "iphonesimulator",
2107-
("x86_64", "ios") if llvm_target.contains("macabi") => "macosx10.15",
2107+
("x86_64", "ios") if llvm_target.contains("macabi") => "macosx",
21082108
("x86_64", "ios") => "iphonesimulator",
21092109
_ => {
21102110
sess.err(&format!("unsupported arch `{}` for os `{}`", arch, os));

compiler/rustc_target/src/spec/aarch64_apple_ios_macabi.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::spec::{LinkerFlavor, Target, TargetOptions, TargetResult};
44
pub fn target() -> TargetResult {
55
let base = opts(Arch::Arm64_macabi);
66
Ok(Target {
7-
llvm_target: "arm64-apple-ios-macabi".to_string(),
7+
llvm_target: "arm64-apple-ios14.2-macabi".to_string(),
88
target_endian: "little".to_string(),
99
target_pointer_width: "64".to_string(),
1010
target_c_int_width: "32".to_string(),
@@ -15,7 +15,7 @@ pub fn target() -> TargetResult {
1515
target_vendor: "apple".to_string(),
1616
linker_flavor: LinkerFlavor::Gcc,
1717
options: TargetOptions {
18-
features: "+neon,+fp-armv8,+apple-a7".to_string(),
18+
features: "+neon,+fp-armv8,+apple-a12".to_string(),
1919
eliminate_frame_pointer: false,
2020
max_atomic_width: Some(128),
2121
unsupported_abis: super::arm_base::unsupported_abis(),
@@ -24,11 +24,9 @@ pub fn target() -> TargetResult {
2424
// These arguments are not actually invoked - they just have
2525
// to look right to pass App Store validation.
2626
bitcode_llvm_cmdline: "-triple\0\
27-
arm64-apple-ios-macabi\0\
27+
arm64-apple-ios14.2-macabi\0\
2828
-emit-obj\0\
2929
-disable-llvm-passes\0\
30-
-target-abi\0\
31-
darwinpcs\0\
3230
-Os\0"
3331
.to_string(),
3432
..base

compiler/rustc_target/src/spec/apple_sdk_base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fn target_cpu(arch: Arch) -> String {
2121
I386 => "yonah",
2222
X86_64 => "core2",
2323
X86_64_macabi => "core2",
24-
Arm64_macabi => "apple-a7",
24+
Arm64_macabi => "apple-a12",
2525
}
2626
.to_string()
2727
}

0 commit comments

Comments
 (0)