mirror of
https://github.com/ziglang/zig.git
synced 2025-12-12 09:13:11 +00:00
macho: identifier string in code signature should be just basename
This commit is contained in:
parent
bd6d951f63
commit
f7266e03a8
@ -4155,7 +4155,7 @@ pub fn linkWithZld(macho_file: *MachO, comp: *Compilation, prog_node: *std.Progr
|
|||||||
// The most important here is to have the correct vm and filesize of the __LINKEDIT segment
|
// The most important here is to have the correct vm and filesize of the __LINKEDIT segment
|
||||||
// where the code signature goes into.
|
// where the code signature goes into.
|
||||||
var codesig = CodeSignature.init(page_size);
|
var codesig = CodeSignature.init(page_size);
|
||||||
codesig.code_directory.ident = options.emit.?.sub_path;
|
codesig.code_directory.ident = fs.path.basename(full_out_path);
|
||||||
if (options.entitlements) |path| {
|
if (options.entitlements) |path| {
|
||||||
try codesig.addEntitlements(gpa, path);
|
try codesig.addEntitlements(gpa, path);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user