authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-20 01:56:57+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-20 02:36:38+02:00
logcfec358de1bac861a962731444168a2863e970c9
tree581df2ddd74518d014f56122905ceb9dfa934f36
parentfc7659fa55f232de90ef61ce8bd9a91cc1a9da14
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

compiler_rt.atomics: lanai does not support atomic instructions


1 files changed, 1 insertions(+), 1 deletions(-)

lib/compiler_rt/atomics.zig+1-1
...@@ -13,7 +13,7 @@ const symbol = compiler_rt.symbol;...@@ -13,7 +13,7 @@ const symbol = compiler_rt.symbol;
13// detail to keep the export logic clean and because we need some kind of CAS to13// detail to keep the export logic clean and because we need some kind of CAS to
14// implement the spinlocks.14// implement the spinlocks.
15const supports_atomic_ops = switch (arch) {15const supports_atomic_ops = switch (arch) {
16 .msp430, .avr, .bpfel, .bpfeb => false,16 .msp430, .avr, .bpfel, .bpfeb, .lanai => false,
17 .arm, .armeb, .thumb, .thumbeb =>17 .arm, .armeb, .thumb, .thumbeb =>
18 // The ARM v6m ISA has no ldrex/strex and so it's impossible to do CAS18 // The ARM v6m ISA has no ldrex/strex and so it's impossible to do CAS
19 // operations (unless we're targeting Linux, the kernel provides a way to19 // operations (unless we're targeting Linux, the kernel provides a way to