macho: use TOOL=0x5 to mean ZIG as the build tool
2 files changed, 3 insertions(+), 1 deletions(-)
lib/std/macho.zig+2
| ... | ... | @@ -143,6 +143,8 @@ pub const TOOL = enum(u32) { |
| 143 | 143 | CLANG = 0x1, |
| 144 | 144 | SWIFT = 0x2, |
| 145 | 145 | LD = 0x3, |
| 146 | LLD = 0x4, // LLVM's stock LLD linker |
| 147 | ZIG = 0x5, // Unofficially Zig |
| 146 | 148 | _, |
| 147 | 149 | }; |
| 148 | 150 | |
src/link/MachO/load_commands.zig+1-1
| ... | ... | @@ -294,7 +294,7 @@ pub fn writeBuildVersionLC(options: *const link.Options, lc_writer: anytype) !vo |
| 294 | 294 | .ntools = 1, |
| 295 | 295 | }); |
| 296 | 296 | try lc_writer.writeAll(mem.asBytes(&macho.build_tool_version{ |
| 297 | | .tool = .LD, |
| 297 | .tool = .ZIG, |
| 298 | 298 | .version = 0x0, |
| 299 | 299 | })); |
| 300 | 300 | } |