Skip to content

Commit

Permalink
Disable atomics on avr target.
Browse files Browse the repository at this point in the history
`max_atomic_width` was missing in the spec, which means it fell back to
the pointer width of 16 bits.
  • Loading branch information
m-ou-se committed Sep 5, 2020
1 parent c336478 commit 61ac138
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_target/src/spec/avr_gnu_base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ pub fn target(target_cpu: String) -> TargetResult {
late_link_args: vec![(LinkerFlavor::Gcc, vec!["-lgcc".to_owned()])]
.into_iter()
.collect(),
max_atomic_width: Some(0),
atomic_cas: false,
..TargetOptions::default()
},
})
Expand Down

0 comments on commit 61ac138

Please sign in to comment.