From 103cde01096863220765fd2e54519d011a5740ac Mon Sep 17 00:00:00 2001 From: Scott Mabin Date: Tue, 26 Nov 2024 10:26:20 +0000 Subject: [PATCH] Add +forced-atomics feature to esp32s2 no_std target --- .../rustc_target/src/spec/targets/xtensa_esp32s2_none_elf.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_target/src/spec/targets/xtensa_esp32s2_none_elf.rs b/compiler/rustc_target/src/spec/targets/xtensa_esp32s2_none_elf.rs index 34d8383a60476..f33754ac3a010 100644 --- a/compiler/rustc_target/src/spec/targets/xtensa_esp32s2_none_elf.rs +++ b/compiler/rustc_target/src/spec/targets/xtensa_esp32s2_none_elf.rs @@ -18,6 +18,7 @@ pub(crate) fn target() -> Target { vendor: "espressif".into(), cpu: "esp32-s2".into(), linker: Some("xtensa-esp32s2-elf-gcc".into()), + features: "+forced-atomics".into(), max_atomic_width: Some(32), ..xtensa::opts() },