From cfec358de1bac861a962731444168a2863e970c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Tue, 20 Oct 2026 01:56:57 +0200 Subject: [PATCH] compiler_rt.atomics: lanai does not support atomic instructions --- lib/compiler_rt/atomics.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compiler_rt/atomics.zig b/lib/compiler_rt/atomics.zig index 83b978a11ca2fad3dc2e4f8483556751c2f6e3d1..8b7861537a06cc8c9c9075f3faba1bba9488a709 100644 --- a/lib/compiler_rt/atomics.zig +++ b/lib/compiler_rt/atomics.zig @@ -13,7 +13,7 @@ const symbol = compiler_rt.symbol; // detail to keep the export logic clean and because we need some kind of CAS to // implement the spinlocks. const supports_atomic_ops = switch (arch) { - .msp430, .avr, .bpfel, .bpfeb => false, + .msp430, .avr, .bpfel, .bpfeb, .lanai => false, .arm, .armeb, .thumb, .thumbeb => // The ARM v6m ISA has no ldrex/strex and so it's impossible to do CAS // operations (unless we're targeting Linux, the kernel provides a way to -- 2.54.0