diff options
| author | alexrp <alex@alexrp.com> | 2025-09-21 08:47:21 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-09-22 01:37:32 +0200 |
| commit | 0700ec35bda705fccb61cb3f28734ce11166fda5 (patch) | |
| tree | 1cda0d7385705b69cd59e838584688a3b5607949 /test/tests.zig | |
| parent | 4d8dcccbd416ec49bcd681374c90bbe9a11ed5ca (diff) | |
| download | zig-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.zig | 3 |
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, } |
