Skip to content

Commit f06ab92

Browse files
Rollup merge of rust-lang#119118 - arttet:feature/fix-arm64e-targets, r=petrochenkov
Fix arm64e-apple-ios target - [x] [Remove legacy `bitcode` defaults](rust-lang#117364) - [x] Use LLVM features Now we have warnings such as ``` '+paca' is not a recognized feature for this target (ignoring feature) '+pacg' is not a recognized feature for this target (ignoring feature) ``` Because we should use LLVM features.
2 parents f5a1261 + fd0033c commit f06ab92

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

compiler/rustc_target/src/spec/targets/arm64e_apple_ios.rs

+5-10
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,18 @@ pub fn target() -> Target {
77
base.supported_sanitizers = SanitizerSet::ADDRESS | SanitizerSet::THREAD;
88

99
Target {
10+
// Clang automatically chooses a more specific target based on
11+
// IPHONEOS_DEPLOYMENT_TARGET.
12+
// This is required for the target to pick the right
13+
// MACH-O commands, so we do too.
1014
llvm_target: ios_llvm_target(arch).into(),
1115
pointer_width: 64,
1216
data_layout: "e-m:o-i64:64-i128:128-n32:64-S128".into(),
1317
arch: arch.target_arch(),
1418
options: TargetOptions {
15-
features: "+neon,+fp-armv8,+apple-a12,+v8.3a,+paca,+pacg".into(),
19+
features: "+neon,+fp-armv8,+apple-a12,+v8.3a,+pauth".into(),
1620
max_atomic_width: Some(128),
17-
forces_embed_bitcode: true,
1821
frame_pointer: FramePointer::NonLeaf,
19-
bitcode_llvm_cmdline: "-triple\0\
20-
arm64e-apple-ios14.1.0\0\
21-
-emit-obj\0\
22-
-disable-llvm-passes\0\
23-
-target-abi\0\
24-
darwinpcs\0\
25-
-Os\0"
26-
.into(),
2722
..base
2823
},
2924
}

0 commit comments

Comments
 (0)