macho: use TOOL=0x5 to mean ZIG as the build tool

This commit is contained in:
Jakub Konka
2023-03-21 12:47:43 +01:00
parent 073f9a18a9
commit b73159f4f5
2 changed files with 3 additions and 1 deletions

View File

@@ -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
_,
};

View File

@@ -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,
}));
}