Skip to content

Commit 0a61bc4

Browse files
committed
Support 128-bit atomics on all x86_64 Apple targets
1 parent ad8304a commit 0a61bc4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

compiler/rustc_target/src/spec/x86_64_apple_ios.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub fn target() -> Target {
1313
.into(),
1414
arch: arch.target_arch(),
1515
options: TargetOptions {
16-
max_atomic_width: Some(64),
16+
max_atomic_width: Some(128),
1717
stack_probes: StackProbeType::X86,
1818
..base
1919
},

compiler/rustc_target/src/spec/x86_64_apple_ios_macabi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub fn target() -> Target {
1515
.into(),
1616
arch: arch.target_arch(),
1717
options: TargetOptions {
18-
max_atomic_width: Some(64),
18+
max_atomic_width: Some(128),
1919
stack_probes: StackProbeType::X86,
2020
..base
2121
},

compiler/rustc_target/src/spec/x86_64_apple_tvos.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub fn target() -> Target {
99
data_layout: "e-m:o-i64:64-f80:128-n8:16:32:64-S128".into(),
1010
arch: arch.target_arch(),
1111
options: TargetOptions {
12-
max_atomic_width: Some(64),
12+
max_atomic_width: Some(128),
1313
stack_probes: StackProbeType::X86,
1414
..opts("tvos", arch)
1515
},

compiler/rustc_target/src/spec/x86_64_apple_watchos_sim.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub fn target() -> Target {
1010
.into(),
1111
arch: arch.target_arch(),
1212
options: TargetOptions {
13-
max_atomic_width: Some(64),
13+
max_atomic_width: Some(128),
1414
stack_probes: StackProbeType::X86,
1515
forces_embed_bitcode: true,
1616
// Taken from a clang build on Xcode 11.4.1.

0 commit comments

Comments
 (0)