authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-02-26 11:37:46 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-02-26 11:37:46 -08:00
log3d228ccdc54576621743e4a74f274b97210073ff
treefc07e3c9f2c4d42dfcc7a27dd8800654b0a97106
parent43b20ecf1c3fd2fb5a09d539d7b3f7bdee0e12f8

cmd/fetch- only omit item from c_flags if the package also has no c_files


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

src/cmd_fetch.zig+1-1
......@@ -184,7 +184,7 @@ fn print_csrc_flags_to(w: fs.File.Writer, list: []u.Module) !void {
184184 if (mod.is_sys_lib) {
185185 continue;
186186 }
187 if (mod.c_source_flags.len == 0) {
187 if (mod.c_source_flags.len == 0 and mod.c_source_files.len == 0) {
188188 continue;
189189 }
190190 try w.print(" pub const @\"{s}\" = {s}", .{mod.id, "&.{"});