mirror of
https://github.com/ziglang/zig.git
synced 2025-12-29 01:23:17 +00:00
macho: set filename as ident in code signature
This commit is contained in:
parent
46bc91ade5
commit
e69ffcd8c1
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user