Skip to content

Commit dafcd25

Browse files
committed
Enable outline-atomics by default on AArch64 Apple platforms
Darwin and the `-sim` targets already have a baseline with LSE. Enable `outline-atomics` on all other Apple targets here.
1 parent 9cf6ece commit dafcd25

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub(crate) fn target() -> Target {
1616
.into(),
1717
arch,
1818
options: TargetOptions {
19-
features: "+neon,+fp-armv8,+apple-a7".into(),
19+
features: "+neon,+fp-armv8,+apple-a7,+outline-atomics".into(),
2020
max_atomic_width: Some(128),
2121
supported_sanitizers: SanitizerSet::ADDRESS | SanitizerSet::THREAD,
2222
..opts

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub(crate) fn target() -> Target {
1616
.into(),
1717
arch,
1818
options: TargetOptions {
19-
features: "+neon,+fp-armv8,+apple-a7".into(),
19+
features: "+neon,+fp-armv8,+apple-a7,+outline-atomics".into(),
2020
max_atomic_width: Some(128),
2121
..opts
2222
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub(crate) fn target() -> Target {
1616
.into(),
1717
arch,
1818
options: TargetOptions {
19-
features: "+neon,+fp-armv8,+apple-a16".into(),
19+
features: "+neon,+fp-armv8,+apple-a16,+outline-atomics".into(),
2020
max_atomic_width: Some(128),
2121
supported_sanitizers: SanitizerSet::ADDRESS | SanitizerSet::THREAD,
2222
..opts

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub(crate) fn target() -> Target {
1616
.into(),
1717
arch,
1818
options: TargetOptions {
19-
features: "+v8a,+neon,+fp-armv8,+apple-a7".into(),
19+
features: "+v8a,+neon,+fp-armv8,+apple-a7,+outline-atomics".into(),
2020
max_atomic_width: Some(128),
2121
dynamic_linking: false,
2222
position_independent_executables: true,

0 commit comments

Comments
 (0)