authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2020-12-02 08:21:25+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2020-12-02 11:21:52+01:00
log0fba2f71758bd4230f5c6ff9a638e6b69a671a78
tree7d95e0ec7032124c75d73d8ef391f541921c18f7
parent3e2d1ccaad03e7e1a9efe905863d3af793e61500

lld: fix using incorrect path for the final artefact


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

src/link/MachO.zig+1-1
......@@ -725,7 +725,7 @@ fn linkWithLLD(self: *MachO, comp: *Compilation) !void {
725725
726726 // At this stage, LLD has done its job. It is time to patch the resultant
727727 // binaries up!
728 const out_file = try directory.handle.openFile(full_out_path, .{ .write = true });
728 const out_file = try directory.handle.openFile(self.base.options.emit.?.sub_path, .{ .write = true });
729729 try self.parseFromFile(out_file);
730730 if (self.code_signature_cmd_index == null) {
731731 const text_segment = self.load_commands.items[self.text_segment_cmd_index.?].Segment;