| ... | ... | @@ -852,9 +852,10 @@ fn linkWithLLD(self: *MachO, comp: *Compilation) !void { |
| 852 | 852 | // Generate adhoc code signature |
| 853 | 853 | var signature = CodeSignature.init(self.base.allocator); |
| 854 | 854 | defer signature.deinit(); |
| 855 | const emit = self.base.options.emit.?; |
| 855 | 856 | try signature.calcAdhocSignatureFile( |
| 856 | 857 | out_file, |
| 857 | | self.base.options.emit.?.sub_path, |
| 858 | emit.sub_path, |
| 858 | 859 | text_cmd, |
| 859 | 860 | code_sig, |
| 860 | 861 | self.base.options.output_mode, |
| ... | ... | @@ -863,6 +864,7 @@ fn linkWithLLD(self: *MachO, comp: *Compilation) !void { |
| 863 | 864 | defer self.base.allocator.free(buffer); |
| 864 | 865 | signature.write(buffer); |
| 865 | 866 | try out_file.pwriteAll(buffer, code_sig.dataoff); |
| 867 | try emit.directory.handle.copyFile(emit.sub_path, emit.directory.handle, emit.sub_path, .{}); |
| 866 | 868 | } |
| 867 | 869 | } |
| 868 | 870 | |