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 {...@@ -9,9 +9,9 @@ pub fn addAllTo(exe: *std.build.LibExeObjStep) void {
9 for (packages) |pkg| {9 for (packages) |pkg| {
10 exe.addPackage(pkg.pkg.?);10 exe.addPackage(pkg.pkg.?);
11 }11 }
12 var llc = false;
12 inline for (std.meta.declarations(package_data)) |decl| {13 inline for (std.meta.declarations(package_data)) |decl| {
13 const pkg = @as(Package, @field(package_data, decl.name));14 const pkg = @as(Package, @field(package_data, decl.name));
14 var llc = false;
15 inline for (pkg.system_libs) |item| {15 inline for (pkg.system_libs) |item| {
16 exe.linkSystemLibrary(item);16 exe.linkSystemLibrary(item);
17 llc = true;17 llc = true;
...@@ -24,10 +24,8 @@ pub fn addAllTo(exe: *std.build.LibExeObjStep) void {...@@ -24,10 +24,8 @@ pub fn addAllTo(exe: *std.build.LibExeObjStep) void {
24 exe.addCSourceFile(@field(dirs, decl.name) ++ "/" ++ item, pkg.c_source_flags);24 exe.addCSourceFile(@field(dirs, decl.name) ++ "/" ++ item, pkg.c_source_flags);
25 llc = true;25 llc = true;
26 }26 }
27 if (llc) {
28 exe.linkLibC();
29 }
30 }27 }
28 if (llc) exe.linkLibC();
31}29}
3230
33pub const Package = struct {31pub const Package = struct {