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