Skip to content

Commit

Permalink
link: cache weak libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon authored and andrewrk committed Jul 19, 2022
1 parent 61cd09f commit 36dc0a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/link.zig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const Package = @import("Package.zig");
const Type = @import("type.zig").Type;
const TypedValue = @import("TypedValue.zig");

/// When adding a new field, remember to update `hashAddSystemLibs`.
pub const SystemLib = struct {
needed: bool = false,
weak: bool = false,
Expand All @@ -35,6 +36,7 @@ pub fn hashAddSystemLibs(
hh.addListOfBytes(keys);
for (hm.values()) |value| {
hh.add(value.needed);
hh.add(value.weak);
}
}

Expand Down

0 comments on commit 36dc0a3

Please sign in to comment.