aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authoralexrp <alex@alexrp.com>2025-09-21 08:47:21 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2025-09-22 01:37:32 +0200
commit0700ec35bda705fccb61cb3f28734ce11166fda5 (patch)
tree1cda0d7385705b69cd59e838584688a3b5607949 /test/tests.zig
parent4d8dcccbd416ec49bcd681374c90bbe9a11ed5ca (diff)
downloadzig-0700ec35bda705fccb61cb3f28734ce11166fda5.tar.gz
zig-0700ec35bda705fccb61cb3f28734ce11166fda5.zip
compiler: don't use self-hosted backend on any BSD yet
There are some blocking bugs in the self-hosted ELF linker.
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/tests.zig b/test/tests.zig
index a99b7c703b..5b0dfc40a7 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -2451,8 +2451,9 @@ pub fn wouldUseLlvm(use_llvm: ?bool, query: std.Target.Query, optimize_mode: Opt
else => return true,
}
const cpu_arch = query.cpu_arch orelse builtin.cpu.arch;
+ const os_tag = query.os_tag orelse builtin.os.tag;
switch (cpu_arch) {
- .x86_64 => if (std.Target.ptrBitWidth_arch_abi(cpu_arch, query.abi orelse .none) != 64) return true,
+ .x86_64 => if (os_tag.isBSD() or std.Target.ptrBitWidth_arch_abi(cpu_arch, query.abi orelse .none) != 64) return true,
.spirv32, .spirv64 => return false,
else => return true,
}