| ... | ... | @@ -725,7 +725,7 @@ fn linkWithLLD(self: *MachO, comp: *Compilation) !void { |
| 725 | 725 | |
| 726 | 726 | // At this stage, LLD has done its job. It is time to patch the resultant |
| 727 | 727 | // 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 }); |
| 729 | 729 | try self.parseFromFile(out_file); |
| 730 | 730 | if (self.code_signature_cmd_index == null) { |
| 731 | 731 | const text_segment = self.load_commands.items[self.text_segment_cmd_index.?].Segment; |