From 8038ea8f9853361b0f32cb2810e1474327a8aa45 Mon Sep 17 00:00:00 2001 From: Walter Tetzner Date: Sat, 26 Feb 2022 23:26:16 -0600 Subject: [PATCH 1/2] #487 Add thumbv4t-none-eabi to the list of targets that don't support atomics. --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 2b17e0be9..93bfe13f0 100644 --- a/build.rs +++ b/build.rs @@ -33,7 +33,7 @@ fn target_has_atomic_cas(target: &str) -> bool { fn target_has_atomics(target: &str) -> bool { match &target[..] { - "msp430-none-elf" | "riscv32i-unknown-none-elf" | "riscv32imc-unknown-none-elf" => false, + "thumbv4t-none-eabi" | "msp430-none-elf" | "riscv32i-unknown-none-elf" | "riscv32imc-unknown-none-elf" => false, _ => true, } } From cb20e453951733e2bdf9949f6862775a018e7ad8 Mon Sep 17 00:00:00 2001 From: Walter Tetzner Date: Sun, 27 Feb 2022 11:36:27 -0600 Subject: [PATCH 2/2] #487 Fix formatting. --- build.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 93bfe13f0..dd8d4e0f7 100644 --- a/build.rs +++ b/build.rs @@ -33,7 +33,10 @@ fn target_has_atomic_cas(target: &str) -> bool { fn target_has_atomics(target: &str) -> bool { match &target[..] { - "thumbv4t-none-eabi" | "msp430-none-elf" | "riscv32i-unknown-none-elf" | "riscv32imc-unknown-none-elf" => false, + "thumbv4t-none-eabi" + | "msp430-none-elf" + | "riscv32i-unknown-none-elf" + | "riscv32imc-unknown-none-elf" => false, _ => true, } }