| ... | @@ -19,6 +19,7 @@ const Package = @import("Package.zig"); | ... | @@ -19,6 +19,7 @@ const Package = @import("Package.zig"); |
| 19 | const Type = @import("type.zig").Type; | 19 | const Type = @import("type.zig").Type; |
| 20 | const TypedValue = @import("TypedValue.zig"); | 20 | const TypedValue = @import("TypedValue.zig"); |
| 21 | | 21 | |
| | 22 | /// When adding a new field, remember to update `hashAddSystemLibs`. |
| 22 | pub const SystemLib = struct { | 23 | pub const SystemLib = struct { |
| 23 | needed: bool = false, | 24 | needed: bool = false, |
| 24 | weak: bool = false, | 25 | weak: bool = false, |
| ... | @@ -35,6 +36,7 @@ pub fn hashAddSystemLibs( | ... | @@ -35,6 +36,7 @@ pub fn hashAddSystemLibs( |
| 35 | hh.addListOfBytes(keys); | 36 | hh.addListOfBytes(keys); |
| 36 | for (hm.values()) |value| { | 37 | for (hm.values()) |value| { |
| 37 | hh.add(value.needed); | 38 | hh.add(value.needed); |
| | 39 | hh.add(value.weak); |
| 38 | } | 40 | } |
| 39 | } | 41 | } |
| 40 | | 42 | |