commit b73159f4f57dcdffab526bb2c944b37942d65fc8 (tree)
parent 073f9a18a92fd233e07470e737e15e651618e47f
Author: Jakub Konka <kubkon@jakubkonka.com>
Date: Tue, 21 Mar 2023 12:47:43 +0100
macho: use TOOL=0x5 to mean ZIG as the build tool
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/std/macho.zig b/lib/std/macho.zig
@@ -143,6 +143,8 @@ pub const TOOL = enum(u32) {
CLANG = 0x1,
SWIFT = 0x2,
LD = 0x3,
+ LLD = 0x4, // LLVM's stock LLD linker
+ ZIG = 0x5, // Unofficially Zig
_,
};
diff --git a/src/link/MachO/load_commands.zig b/src/link/MachO/load_commands.zig
@@ -294,7 +294,7 @@ pub fn writeBuildVersionLC(options: *const link.Options, lc_writer: anytype) !vo
.ntools = 1,
});
try lc_writer.writeAll(mem.asBytes(&macho.build_tool_version{
- .tool = .LD,
+ .tool = .ZIG,
.version = 0x0,
}));
}