Skip to content

Commit a977394

Browse files
committed
compiler: disable self-hosted x86_64 backend on OpenBSD
Same as 97ecb6c for NetBSD.
1 parent 6ec275e commit a977394

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/target.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ pub fn hasLldSupport(ofmt: std.Target.ObjectFormat) bool {
236236
pub fn selfHostedBackendIsAsRobustAsLlvm(target: *const std.Target) bool {
237237
if (target.cpu.arch.isSpirV()) return true;
238238
if (target.cpu.arch == .x86_64 and target.ptrBitWidth() == 64) {
239-
if (target.os.tag == .netbsd) {
239+
if (target.os.tag == .netbsd or target.os.tag == .openbsd) {
240240
// Self-hosted linker needs work: https://github.com/ziglang/zig/issues/24341
241241
return false;
242242
}

0 commit comments

Comments
 (0)