Rollup merge of #76364 - fusion-engineering-forks:avr-no-atomic, r=jonas-schievink
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. Fixes #76363.
This commit is contained in:
commit
23f8dd19ff
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,8 @@ pub fn target(target_cpu: String) -> TargetResult {
|
||||||
late_link_args: vec![(LinkerFlavor::Gcc, vec!["-lgcc".to_owned()])]
|
late_link_args: vec![(LinkerFlavor::Gcc, vec!["-lgcc".to_owned()])]
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.collect(),
|
.collect(),
|
||||||
|
max_atomic_width: Some(0),
|
||||||
|
atomic_cas: false,
|
||||||
..TargetOptions::default()
|
..TargetOptions::default()
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue