Skip to content

Commit e50bcf3

Browse files
author
Jorge Aparicio
committed
arm-musl: set max_atomic_width
1 parent 9ffd0fe commit e50bcf3

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/librustc_back/target/arm_unknown_linux_musleabi.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pub fn target() -> Target {
1616
// Most of these settings are copied from the arm_unknown_linux_gnueabi
1717
// target.
1818
base.features = "+v6".to_string();
19+
base.max_atomic_width = 64;
1920
Target {
2021
// It's important we use "gnueabi" and not "musleabi" here. LLVM uses it
2122
// to determine the calling convention and float ABI, and it doesn't

src/librustc_back/target/arm_unknown_linux_musleabihf.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pub fn target() -> Target {
1616
// Most of these settings are copied from the arm_unknown_linux_gnueabihf
1717
// target.
1818
base.features = "+v6,+vfp2".to_string();
19+
base.max_atomic_width = 64;
1920
Target {
2021
// It's important we use "gnueabihf" and not "musleabihf" here. LLVM
2122
// uses it to determine the calling convention and float ABI, and it

src/librustc_back/target/armv7_unknown_linux_musleabihf.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub fn target() -> Target {
1717
// target.
1818
base.features = "+v7,+vfp3,+neon".to_string();
1919
base.cpu = "cortex-a8".to_string();
20+
base.max_atomic_width = 64;
2021
Target {
2122
// It's important we use "gnueabihf" and not "musleabihf" here. LLVM
2223
// uses it to determine the calling convention and float ABI, and LLVM

0 commit comments

Comments
 (0)