diff --git a/src/target.zig b/src/target.zig index ad83414c23..ba7cca6391 100644 --- a/src/target.zig +++ b/src/target.zig @@ -236,7 +236,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) { + if (target.os.tag == .netbsd or target.os.tag == .openbsd) { // Self-hosted linker needs work: https://github.com/ziglang/zig/issues/24341 return false; }