diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-09-05 11:33:01 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2020-09-05 11:35:01 +0200 |
| commit | 61ac138b5cc9c6e6d7a4ac33135c6086d2d4d644 (patch) | |
| tree | 08e2376f8d1232842945816730d8acb576bb79fa | |
| parent | c3364780d2cfddfe329f62a3ec138fd4f9a60e27 (diff) | |
| download | rust-61ac138b5cc9c6e6d7a4ac33135c6086d2d4d644.tar.gz rust-61ac138b5cc9c6e6d7a4ac33135c6086d2d4d644.zip | |
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.
| -rw-r--r-- | compiler/rustc_target/src/spec/avr_gnu_base.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/spec/avr_gnu_base.rs b/compiler/rustc_target/src/spec/avr_gnu_base.rs index ff559c2bfd6..527a322d56a 100644 --- a/compiler/rustc_target/src/spec/avr_gnu_base.rs +++ b/compiler/rustc_target/src/spec/avr_gnu_base.rs @@ -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() }, }) |
