fn addSystemLib(s: *Serialize, sl: *const std.Build.Module.SystemLib) !Configuration.SystemLib.Index
fn 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), }); }