authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-12-02 02:08:31 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-12-02 02:08:31 -08:00
log58041d5fbe372a58bf345d81c14769fd4fb1560a
tree5d6d334ea52a035d0bc6fb431ab62590eda9624f
parent1d9b3e920bc039a8d061d4fb5233c77a10a4572a

deps.zig- reflect linkLibC changes


1 files changed, 2 insertions(+), 4 deletions(-)

deps.zig+2-4
......@@ -9,9 +9,9 @@ pub fn addAllTo(exe: *std.build.LibExeObjStep) void {
99 for (packages) |pkg| {
1010 exe.addPackage(pkg.pkg.?);
1111 }
12 var llc = false;
1213 inline for (std.meta.declarations(package_data)) |decl| {
1314 const pkg = @as(Package, @field(package_data, decl.name));
14 var llc = false;
1515 inline for (pkg.system_libs) |item| {
1616 exe.linkSystemLibrary(item);
1717 llc = true;
......@@ -24,10 +24,8 @@ pub fn addAllTo(exe: *std.build.LibExeObjStep) void {
2424 exe.addCSourceFile(@field(dirs, decl.name) ++ "/" ++ item, pkg.c_source_flags);
2525 llc = true;
2626 }
27 if (llc) {
28 exe.linkLibC();
29 }
3027 }
28 if (llc) exe.linkLibC();
3129}
3230
3331pub const Package = struct {