| author | |
| committer | |
| log | e39b82bf4e7346ada67a0fd49c480db1c6e12260 |
| tree | 631cc7115e1e1a84571d998dc72322acbf97bd73 |
| parent | feb05a716d1ae105cf0e8f9966b6ade7f32dc680 |
| signature |
https://github.com/ziglang/zig/issues/256994 files changed, 7 insertions(+), 3 deletions(-)
src/target.zig+4| ... | @@ -257,6 +257,10 @@ pub fn hasNewLinkerSupport(ofmt: std.Target.ObjectFormat, backend: std.builtin.C | ... | @@ -257,6 +257,10 @@ pub fn hasNewLinkerSupport(ofmt: std.Target.ObjectFormat, backend: std.builtin.C |
| 257 | pub fn selfHostedBackendIsAsRobustAsLlvm(target: *const std.Target) bool { | 257 | pub fn selfHostedBackendIsAsRobustAsLlvm(target: *const std.Target) bool { |
| 258 | if (target.cpu.arch.isSpirV()) return true; | 258 | if (target.cpu.arch.isSpirV()) return true; |
| 259 | if (target.cpu.arch == .x86_64 and target.ptrBitWidth() == 64) { | 259 | if (target.cpu.arch == .x86_64 and target.ptrBitWidth() == 64) { |
| 260 | if (target.os.tag.isSolarish()) { | ||
| 261 | // https://github.com/ziglang/zig/issues/25699 | ||
| 262 | return false; | ||
| 263 | } | ||
| 260 | if (target.os.tag.isBSD()) { | 264 | if (target.os.tag.isBSD()) { |
| 261 | // Self-hosted linker needs work: https://github.com/ziglang/zig/issues/24341 | 265 | // Self-hosted linker needs work: https://github.com/ziglang/zig/issues/24341 |
| 262 | return false; | 266 | return false; |
test/src/ErrorTrace.zig+1-1| ... | @@ -41,7 +41,7 @@ pub fn addCase(self: *ErrorTrace, case: Case) void { | ... | @@ -41,7 +41,7 @@ pub fn addCase(self: *ErrorTrace, case: Case) void { |
| 41 | fn shouldTestNonLlvm(target: *const std.Target) bool { | 41 | fn shouldTestNonLlvm(target: *const std.Target) bool { |
| 42 | return switch (target.cpu.arch) { | 42 | return switch (target.cpu.arch) { |
| 43 | .x86_64 => switch (target.ofmt) { | 43 | .x86_64 => switch (target.ofmt) { |
| 44 | .elf => !target.os.tag.isBSD(), | 44 | .elf => !target.os.tag.isBSD() and !target.os.tag.isSolarish(), |
| 45 | else => false, | 45 | else => false, |
| 46 | }, | 46 | }, |
| 47 | else => false, | 47 | else => false, |
test/src/StackTrace.zig+1-1| ... | @@ -46,7 +46,7 @@ fn addCaseTarget( | ... | @@ -46,7 +46,7 @@ fn addCaseTarget( |
| 46 | ) void { | 46 | ) void { |
| 47 | const both_backends = switch (target.result.cpu.arch) { | 47 | const both_backends = switch (target.result.cpu.arch) { |
| 48 | .x86_64 => switch (target.result.ofmt) { | 48 | .x86_64 => switch (target.result.ofmt) { |
| 49 | .elf => !target.result.os.tag.isBSD(), | 49 | .elf => !target.result.os.tag.isBSD() and !target.result.os.tag.isSolarish(), |
| 50 | else => false, | 50 | else => false, |
| 51 | }, | 51 | }, |
| 52 | else => false, | 52 | else => false, |
test/tests.zig+1-1| ... | @@ -2493,7 +2493,7 @@ pub fn wouldUseLlvm(use_llvm: ?bool, query: std.Target.Query, optimize_mode: Opt | ... | @@ -2493,7 +2493,7 @@ pub fn wouldUseLlvm(use_llvm: ?bool, query: std.Target.Query, optimize_mode: Opt |
| 2493 | const cpu_arch = query.cpu_arch orelse builtin.cpu.arch; | 2493 | const cpu_arch = query.cpu_arch orelse builtin.cpu.arch; |
| 2494 | const os_tag = query.os_tag orelse builtin.os.tag; | 2494 | const os_tag = query.os_tag orelse builtin.os.tag; |
| 2495 | switch (cpu_arch) { | 2495 | switch (cpu_arch) { |
| 2496 | .x86_64 => if (os_tag.isBSD() or std.Target.ptrBitWidth_arch_abi(cpu_arch, query.abi orelse .none) != 64) return true, | 2496 | .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, |
| 2497 | .spirv32, .spirv64 => return false, | 2497 | .spirv32, .spirv64 => return false, |
| 2498 | else => return true, | 2498 | else => return true, |
| 2499 | } | 2499 | } |