zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit a9773944dc2b930facd66350dcbe87178aacf487 (tree)
parent 6ec275ebd8fce2e816f3f66e0fec5e53669b96c1
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Wed, 30 Jul 2025 09:56:21 +0200

compiler: disable self-hosted x86_64 backend on OpenBSD

Same as 97ecb6c551eb628e5a37d18d5a9720d3714a04ef for NetBSD.

Diffstat:
Msrc/target.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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; }