Skip to content

Commit 3eb06b1

Browse files
committed
cmd/generate: handle when dep is a system_lib
1 parent a4d18db commit 3eb06b1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/cmd/generate.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ fn print_pkg_data_to(w: std.fs.File.Writer, alloc: std.mem.Allocator, cachepath:
294294
if (mod.deps.len != 0) {
295295
try w.writeAll(" .deps = &[_]*Package{");
296296
for (mod.deps, 0..) |moddep, j| {
297+
if (moddep.type == .system_lib or moddep.type == .framework) continue;
297298
try w.print(" &_{s}", .{moddep.id[0..12]});
298299
if (j != mod.deps.len - 1) try w.writeAll(",");
299300
}

0 commit comments

Comments
 (0)