From 0fba2f71758bd4230f5c6ff9a638e6b69a671a78 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Wed, 2 Dec 2020 08:21:25 +0100 Subject: [PATCH] lld: fix using incorrect path for the final artefact --- src/link/MachO.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/link/MachO.zig b/src/link/MachO.zig index 70aa2fec04..d7bc26c312 100644 --- a/src/link/MachO.zig +++ b/src/link/MachO.zig @@ -725,7 +725,7 @@ fn linkWithLLD(self: *MachO, comp: *Compilation) !void { // At this stage, LLD has done its job. It is time to patch the resultant // binaries up! - const out_file = try directory.handle.openFile(full_out_path, .{ .write = true }); + const out_file = try directory.handle.openFile(self.base.options.emit.?.sub_path, .{ .write = true }); try self.parseFromFile(out_file); if (self.code_signature_cmd_index == null) { const text_segment = self.load_commands.items[self.text_segment_cmd_index.?].Segment;