libunwind: Fix an isARM() check to use isArmOrThumb() instead.

This commit is contained in:
Alex Rønne Petersen 2024-07-30 02:57:43 +02:00
parent 7cc257957e
commit 5cd92a6b51
No known key found for this signature in database

View File

@ -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");