| author | |
| committer | |
| log | e526d65f5e11df3093cc2000611c9a6438f847fe |
| tree | b059110e91ee28d43d9e71b50b612c5e75e21f5d |
| parent | 0e673fdab22eafa5099b21ec66c50ba491811ce7 |
| signature |
There are some blocking bugs in the self-hosted ELF linker.3 files changed, 4 insertions(+), 3 deletions(-)
src/target.zig+1-1| ... | ... | @@ -236,7 +236,7 @@ pub fn hasLldSupport(ofmt: std.Target.ObjectFormat) bool { |
| 236 | 236 | pub fn selfHostedBackendIsAsRobustAsLlvm(target: *const std.Target) bool { |
| 237 | 237 | if (target.cpu.arch.isSpirV()) return true; |
| 238 | 238 | if (target.cpu.arch == .x86_64 and target.ptrBitWidth() == 64) { |
| 239 | if (target.os.tag == .netbsd or target.os.tag == .openbsd) { | |
| 239 | if (target.os.tag.isBSD()) { | |
| 240 | 240 | // Self-hosted linker needs work: https://github.com/ziglang/zig/issues/24341 |
| 241 | 241 | return false; |
| 242 | 242 | } |
test/src/StackTrace.zig+1-1| ... | ... | @@ -44,7 +44,7 @@ fn addCaseInner(self: *StackTrace, config: Config, use_llvm: bool) void { |
| 44 | 44 | fn shouldTestNonLlvm(target: *const std.Target) bool { |
| 45 | 45 | return switch (target.cpu.arch) { |
| 46 | 46 | .x86_64 => switch (target.ofmt) { |
| 47 | .elf => true, | |
| 47 | .elf => !target.os.tag.isBSD(), | |
| 48 | 48 | else => false, |
| 49 | 49 | }, |
| 50 | 50 | else => false, |
test/tests.zig+2-1| ... | ... | @@ -2488,8 +2488,9 @@ pub fn wouldUseLlvm(use_llvm: ?bool, query: std.Target.Query, optimize_mode: Opt |
| 2488 | 2488 | else => return true, |
| 2489 | 2489 | } |
| 2490 | 2490 | const cpu_arch = query.cpu_arch orelse builtin.cpu.arch; |
| 2491 | const os_tag = query.os_tag orelse builtin.os.tag; | |
| 2491 | 2492 | switch (cpu_arch) { |
| 2492 | .x86_64 => if (std.Target.ptrBitWidth_arch_abi(cpu_arch, query.abi orelse .none) != 64) return true, | |
| 2493 | .x86_64 => if (os_tag.isBSD() or std.Target.ptrBitWidth_arch_abi(cpu_arch, query.abi orelse .none) != 64) return true, | |
| 2493 | 2494 | .spirv32, .spirv64 => return false, |
| 2494 | 2495 | else => return true, |
| 2495 | 2496 | } |