| ... | @@ -4155,7 +4155,7 @@ pub fn linkWithZld(macho_file: *MachO, comp: *Compilation, prog_node: *std.Progr | ... | @@ -4155,7 +4155,7 @@ pub fn linkWithZld(macho_file: *MachO, comp: *Compilation, prog_node: *std.Progr |
| 4155 | // The most important here is to have the correct vm and filesize of the __LINKEDIT segment | 4155 | // The most important here is to have the correct vm and filesize of the __LINKEDIT segment |
| 4156 | // where the code signature goes into. | 4156 | // where the code signature goes into. |
| 4157 | var codesig = CodeSignature.init(page_size); | 4157 | var codesig = CodeSignature.init(page_size); |
| 4158 | codesig.code_directory.ident = options.emit.?.sub_path; | 4158 | codesig.code_directory.ident = fs.path.basename(full_out_path); |
| 4159 | if (options.entitlements) |path| { | 4159 | if (options.entitlements) |path| { |
| 4160 | try codesig.addEntitlements(gpa, path); | 4160 | try codesig.addEntitlements(gpa, path); |
| 4161 | } | 4161 | } |