| ... | ... | @@ -222,10 +222,16 @@ pub fn hasLldSupport(ofmt: std.Target.ObjectFormat) bool { |
| 222 | 222 | /// than or equal to the number of behavior tests as the respective LLVM backend. |
| 223 | 223 | pub fn selfHostedBackendIsAsRobustAsLlvm(target: *const std.Target) bool { |
| 224 | 224 | if (target.cpu.arch.isSpirV()) return true; |
| 225 | | if (target.cpu.arch == .x86_64 and target.ptrBitWidth() == 64) return switch (target.ofmt) { |
| 226 | | .elf, .macho => true, |
| 227 | | else => false, |
| 228 | | }; |
| 225 | if (target.cpu.arch == .x86_64 and target.ptrBitWidth() == 64) { |
| 226 | if (target.os.tag == .netbsd) { |
| 227 | // Self-hosted linker needs work: https://github.com/ziglang/zig/issues/24341 |
| 228 | return false; |
| 229 | } |
| 230 | return switch (target.ofmt) { |
| 231 | .elf, .macho => true, |
| 232 | else => false, |
| 233 | }; |
| 234 | } |
| 229 | 235 | return false; |
| 230 | 236 | } |
| 231 | 237 | |