Set max_atomic_width for AVR to 16

This commit is contained in:
Taiki Endo 2023-08-05 12:47:46 +09:00
parent 90f0b24ad3
commit c9e83c02a2

View File

@ -23,7 +23,7 @@ pub fn target(target_cpu: &'static str, mmcu: &'static str) -> Target {
LinkerFlavor::Gnu(Cc::Yes, Lld::No), LinkerFlavor::Gnu(Cc::Yes, Lld::No),
&["-lgcc"], &["-lgcc"],
), ),
max_atomic_width: Some(0), max_atomic_width: Some(16),
atomic_cas: false, atomic_cas: false,
relocation_model: RelocModel::Static, relocation_model: RelocModel::Static,
..TargetOptions::default() ..TargetOptions::default()