mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
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.
This commit is contained in:
parent
c3364780d2
commit
61ac138b5c
@ -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…
Reference in New Issue
Block a user