fn addSystemLib(s: *Serialize, sl: *const std.Build.Module.SystemLib) !Configuration.SystemLib.Index 798
799
800
801
802
803
804
805
806
807
808
809
810fn addSystemLib(s: *Serialize, sl: *const std.Build.Module.SystemLib) !Configuration.SystemLib.Index {
const wc = s.wc;
return try wc.addDeduped(Configuration.SystemLib, .{
.flags = .{
.needed = sl.needed,
.weak = sl.weak,
.use_pkg_config = sl.use_pkg_config,
.preferred_link_mode = sl.preferred_link_mode,
.search_strategy = sl.search_strategy,
},
.name = try wc.addString(sl.name),
});
}