authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-02-20 19:22:03 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-02-20 19:22:03 -08:00
log3bcae17e4c3ef5b49f3c45741fa749daa88a9bf2
tree396ad8b6fb470645cc752b8f7dd66724103ab388
parent416eaeabb6530e4259d119f37950f383cecef9fe

cmd/fetch- only gen c src flag entries when there's items


2 files changed, 3 insertions(+), 6 deletions(-)

deps.zig-6
...@@ -75,13 +75,7 @@ pub const c_include_dirs = &[_][]const u8{...@@ -75,13 +75,7 @@ pub const c_include_dirs = &[_][]const u8{
75};75};
7676
77pub const c_source_flags = struct {77pub const c_source_flags = struct {
78 pub const @"89ujp8gq842x6mzok8feypwze138n2d96zpugw44hcq7406r" = &.{};
79 pub const @"8mdbh0zuneb0i3hs5jby5je0heem1i6yxusl7c8y8qx68hqc" = &.{"-DYAML_VERSION_MAJOR=0","-DYAML_VERSION_MINOR=2","-DYAML_VERSION_PATCH=5","-DYAML_VERSION_STRING=\"0.2.5\"","-DYAML_DECLARE_STATIC=1",};78 pub const @"8mdbh0zuneb0i3hs5jby5je0heem1i6yxusl7c8y8qx68hqc" = &.{"-DYAML_VERSION_MAJOR=0","-DYAML_VERSION_MINOR=2","-DYAML_VERSION_PATCH=5","-DYAML_VERSION_STRING=\"0.2.5\"","-DYAML_DECLARE_STATIC=1",};
80 pub const @"s84v9o48ucb0xq0cmzq0cn433hgw0iaqztugja16h8bzxu3h" = &.{};
81 pub const @"2ta738wrqbaqzl3iwzoo8nj35k9ynwz5p5iyz80ryrpp4ttf" = &.{};
82 pub const @"2b7mq571jmq31ktmpigopu29480iw245heueajgxzxn7ab8o" = &.{};
83 pub const @"csbnipaad8n77buaszsnjvlmn6j173fl7pkprsctelswjywe" = &.{};
84 pub const @"0npcrzfdlrvkf44mzjo8bduj9gmqyefo0j3rstt6b0pm2r6r" = &.{};
85};79};
8680
87pub const c_source_files = &[_][2][]const u8{81pub const c_source_files = &[_][2][]const u8{
src/cmd_fetch.zig+3
...@@ -184,6 +184,9 @@ fn print_csrc_flags_to(w: fs.File.Writer, list: []u.Module) !void {...@@ -184,6 +184,9 @@ fn print_csrc_flags_to(w: fs.File.Writer, list: []u.Module) !void {
184 if (mod.is_sys_lib) {184 if (mod.is_sys_lib) {
185 continue;185 continue;
186 }186 }
187 if (mod.c_source_flags.len == 0) {
188 continue;
189 }
187 try w.print(" pub const @\"{s}\" = {s}", .{mod.id, "&.{"});190 try w.print(" pub const @\"{s}\" = {s}", .{mod.id, "&.{"});
188 for (mod.c_source_flags) |it| {191 for (mod.c_source_flags) |it| {
189 try w.print("\"{s}\",", .{std.zig.fmtEscapes(it)});192 try w.print("\"{s}\",", .{std.zig.fmtEscapes(it)});