authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-01-29 13:01:05+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-01-29 13:01:32+01:00
log78740e55406ebf82371f385bbbf54f224949b8cb
tree15036e10fc39b1c93fdeab46daebdadb7e6c5ba7
parentec757ea666a7549c5f144e2925ce3ccb396fe4c0

macho: flush Dwarf module before flushing dSYM


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

src/link/MachO/DebugSymbols.zig+2
......@@ -206,6 +206,8 @@ pub fn flushModule(self: *DebugSymbols, macho_file: *MachO) !void {
206206 // and it corresponds to the Zig source code.
207207 const zcu = comp.module orelse return error.LinkingWithoutZigSourceUnimplemented;
208208
209 try self.dwarf.flushModule(zcu);
210
209211 for (self.relocs.items) |*reloc| {
210212 const sym = macho_file.getSymbol(reloc.target);
211213 const sym_name = sym.getName(macho_file);