zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit e69ffcd8c1179f9945b672a7dba5a2d42fa6cf88 (tree)
parent 46bc91ade533ad2f51ae32962b057952f90e8d2a
Author: Jakub Konka <kubkon@jakubkonka.com>
Date:   Mon, 22 Jan 2024 23:21:43 +0100

macho: set filename as ident in code signature

Diffstat:
Msrc/link/MachO.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/link/MachO.zig b/src/link/MachO.zig @@ -674,7 +674,7 @@ pub fn flushModule(self: *MachO, arena: Allocator, prog_node: *std.Progress.Node // The most important here is to have the correct vm and filesize of the __LINKEDIT segment // where the code signature goes into. var codesig = CodeSignature.init(self.getPageSize()); - codesig.code_directory.ident = self.base.emit.sub_path; + codesig.code_directory.ident = fs.path.basename(full_out_path); if (self.entitlements) |path| try codesig.addEntitlements(gpa, path); try self.writeCodeSignaturePadding(&codesig); break :blk codesig;