aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-10-25 10:34:48 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2025-10-25 12:44:13 +0200
commite39b82bf4e7346ada67a0fd49c480db1c6e12260 (patch)
tree631cc7115e1e1a84571d998dc72322acbf97bd73 /test/tests.zig
parentfeb05a716d1ae105cf0e8f9966b6ade7f32dc680 (diff)
downloadzig-e39b82bf4e7346ada67a0fd49c480db1c6e12260.tar.gz
zig-e39b82bf4e7346ada67a0fd49c480db1c6e12260.zip
compiler: avoid using self-hosted backend on x86_64-solaris/illumos
https://github.com/ziglang/zig/issues/25699
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tests.zig b/test/tests.zig
index c7fe8a7e78..d83c95956a 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -2493,7 +2493,7 @@ pub fn wouldUseLlvm(use_llvm: ?bool, query: std.Target.Query, optimize_mode: Opt
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 (os_tag.isBSD() or std.Target.ptrBitWidth_arch_abi(cpu_arch, query.abi orelse .none) != 64) return true,
+ .x86_64 => if (os_tag.isBSD() or os_tag.isSolarish() or std.Target.ptrBitWidth_arch_abi(cpu_arch, query.abi orelse .none) != 64) return true,
.spirv32, .spirv64 => return false,
else => return true,
}