authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-07-30 09:56:21+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-07-30 17:17:22+02:00
loga9773944dc2b930facd66350dcbe87178aacf487
tree02fd9a886b2e5ae2dd36c893b23fff8ff625717f
parent6ec275ebd8fce2e816f3f66e0fec5e53669b96c1

compiler: disable self-hosted x86_64 backend on OpenBSD

Same as 97ecb6c551eb628e5a37d18d5a9720d3714a04ef for NetBSD.

1 files changed, 1 insertions(+), 1 deletions(-)

src/target.zig+1-1
......@@ -236,7 +236,7 @@ pub fn hasLldSupport(ofmt: std.Target.ObjectFormat) bool {
236236pub 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 }