mirror of
https://github.com/ziglang/zig.git
synced 2026-01-19 13:55:20 +00:00
macho: set dylib ordinals after pruning
This commit is contained in:
parent
eca9bc4c33
commit
40e1bb11f8
@ -508,6 +508,11 @@ pub fn flushModule(self: *MachO, arena: Allocator, prog_node: *std.Progress.Node
|
||||
self.markImportsAndExports();
|
||||
self.deadStripDylibs();
|
||||
|
||||
for (self.dylibs.items, 1..) |index, ord| {
|
||||
const dylib = self.getFile(index).?.dylib;
|
||||
dylib.ordinal = @intCast(ord);
|
||||
}
|
||||
|
||||
state_log.debug("{}", .{self.dumpState()});
|
||||
|
||||
@panic("TODO");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user