diff --git a/deps.zig b/deps.zig index 4863df0d2917759307983cc835aef3bf92f99ebf..9c139afc42b58f54b779149544c8366b05a13b26 100644 --- a/deps.zig +++ b/deps.zig @@ -75,13 +75,7 @@ pub const c_include_dirs = &[_][]const u8{ }; pub const c_source_flags = struct { - pub const @"89ujp8gq842x6mzok8feypwze138n2d96zpugw44hcq7406r" = &.{}; 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",}; - pub const @"s84v9o48ucb0xq0cmzq0cn433hgw0iaqztugja16h8bzxu3h" = &.{}; - pub const @"2ta738wrqbaqzl3iwzoo8nj35k9ynwz5p5iyz80ryrpp4ttf" = &.{}; - pub const @"2b7mq571jmq31ktmpigopu29480iw245heueajgxzxn7ab8o" = &.{}; - pub const @"csbnipaad8n77buaszsnjvlmn6j173fl7pkprsctelswjywe" = &.{}; - pub const @"0npcrzfdlrvkf44mzjo8bduj9gmqyefo0j3rstt6b0pm2r6r" = &.{}; }; pub const c_source_files = &[_][2][]const u8{ diff --git a/src/cmd_fetch.zig b/src/cmd_fetch.zig index 738f8afca4fc57e7c1fb8e9aad1c5444c0b34e82..a6b80662842e64a5ad18d7d422cb5592d4b21a69 100644 --- a/src/cmd_fetch.zig +++ b/src/cmd_fetch.zig @@ -184,6 +184,9 @@ fn print_csrc_flags_to(w: fs.File.Writer, list: []u.Module) !void { if (mod.is_sys_lib) { continue; } + if (mod.c_source_flags.len == 0) { + continue; + } try w.print(" pub const @\"{s}\" = {s}", .{mod.id, "&.{"}); for (mod.c_source_flags) |it| { try w.print("\"{s}\",", .{std.zig.fmtEscapes(it)});