Skip to content

Commit 61ac138

Browse files
committed
Disable atomics on avr target.
`max_atomic_width` was missing in the spec, which means it fell back to the pointer width of 16 bits.
1 parent c336478 commit 61ac138

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_target/src/spec/avr_gnu_base.rs

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ pub fn target(target_cpu: String) -> TargetResult {
4545
late_link_args: vec![(LinkerFlavor::Gcc, vec!["-lgcc".to_owned()])]
4646
.into_iter()
4747
.collect(),
48+
max_atomic_width: Some(0),
49+
atomic_cas: false,
4850
..TargetOptions::default()
4951
},
5052
})

0 commit comments

Comments
 (0)