mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
compiler: Disable self-hosted x86_64 backend on NetBSD
https://github.com/ziglang/zig/issues/24341
This commit is contained in:
parent
b461d07a54
commit
97ecb6c551
@ -222,10 +222,16 @@ pub fn hasLldSupport(ofmt: std.Target.ObjectFormat) bool {
|
||||
/// than or equal to the number of behavior tests as the respective LLVM backend.
|
||||
pub fn selfHostedBackendIsAsRobustAsLlvm(target: *const std.Target) bool {
|
||||
if (target.cpu.arch.isSpirV()) return true;
|
||||
if (target.cpu.arch == .x86_64 and target.ptrBitWidth() == 64) return switch (target.ofmt) {
|
||||
.elf, .macho => true,
|
||||
else => false,
|
||||
};
|
||||
if (target.cpu.arch == .x86_64 and target.ptrBitWidth() == 64) {
|
||||
if (target.os.tag == .netbsd) {
|
||||
// Self-hosted linker needs work: https://github.com/ziglang/zig/issues/24341
|
||||
return false;
|
||||
}
|
||||
return switch (target.ofmt) {
|
||||
.elf, .macho => true,
|
||||
else => false,
|
||||
};
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user