mirror of
https://github.com/ziglang/zig.git
synced 2026-02-15 22:09:49 +00:00
link: cache weak libraries
This commit is contained in:
parent
9e8298b864
commit
c02dc17618
@ -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,
|
||||
@ -35,6 +36,7 @@ pub fn hashAddSystemLibs(
|
||||
hh.addListOfBytes(keys);
|
||||
for (hm.values()) |value| {
|
||||
hh.add(value.needed);
|
||||
hh.add(value.weak);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user