diff options
| author | alexrp <alex@alexrp.com> | 2025-09-21 08:47:21 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-09-22 01:37:32 +0200 |
| commit | 0700ec35bda705fccb61cb3f28734ce11166fda5 (patch) | |
| tree | 1cda0d7385705b69cd59e838584688a3b5607949 /src/target.zig | |
| parent | 4d8dcccbd416ec49bcd681374c90bbe9a11ed5ca (diff) | |
| download | zig-0700ec35bda705fccb61cb3f28734ce11166fda5.tar.gz zig-0700ec35bda705fccb61cb3f28734ce11166fda5.zip | |
compiler: don't use self-hosted backend on any BSD yet
There are some blocking bugs in the self-hosted ELF linker.
Diffstat (limited to 'src/target.zig')
| -rw-r--r-- | src/target.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target.zig b/src/target.zig index e999d2ae22..6326f3c3a1 100644 --- a/src/target.zig +++ b/src/target.zig @@ -238,7 +238,7 @@ pub fn hasLldSupport(ofmt: std.Target.ObjectFormat) bool { 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) { - if (target.os.tag == .netbsd or target.os.tag == .openbsd) { + if (target.os.tag.isBSD()) { // Self-hosted linker needs work: https://github.com/ziglang/zig/issues/24341 return false; } |
