From 30e254fc311875720466d9a2b19d06e5599cd8c1 Mon Sep 17 00:00:00 2001 From: Alex Rønne Petersen Date: Sun, 27 Apr 2025 03:47:58 +0200 Subject: link: Stub out GOFF/XCOFF linker code based on LLVM. This allows emitting object files for s390x-zos (GOFF) and powerpc(64)-aix (XCOFF). Note that GOFF emission in LLVM is still being worked on upstream for LLVM 21; the resulting object files are useless right now. Also, -fstrip is required, or LLVM will SIGSEGV during DWARF emission. --- src/dev.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/dev.zig') diff --git a/src/dev.zig b/src/dev.zig index f4be5a36a9..0d90293246 100644 --- a/src/dev.zig +++ b/src/dev.zig @@ -82,6 +82,8 @@ pub const Env = enum { .spirv_linker, .plan9_linker, .nvptx_linker, + .goff_linker, + .xcoff_linker, => true, .cc_command, .translate_c_command, @@ -228,6 +230,8 @@ pub const Feature = enum { spirv_linker, plan9_linker, nvptx_linker, + goff_linker, + xcoff_linker, }; /// Makes the code following the call to this function unreachable if `feature` is disabled. -- cgit v1.2.3