Commit 5cd92a6b51

Alex Rønne Petersen <alex@alexrp.com>
2024-07-30 02:57:43
libunwind: Fix an isARM() check to use isArmOrThumb() instead.
1 parent 7cc2579
Changed files (1)
src/libunwind.zig
@@ -131,7 +131,7 @@ pub fn buildStaticLib(comp: *Compilation, prog_node: std.Progress.Node) BuildErr
         if (!comp.config.any_non_single_threaded) {
             try cflags.append("-D_LIBUNWIND_HAS_NO_THREADS");
         }
-        if (target.cpu.arch.isARM() and target.abi.floatAbi() == .hard) {
+        if (target.cpu.arch.isArmOrThumb() and target.abi.floatAbi() == .hard) {
             try cflags.append("-DCOMPILER_RT_ARMHF_TARGET");
         }
         try cflags.append("-Wno-bitwise-conditional-parentheses");