| ... | @@ -220,7 +220,7 @@ fn print_pkg_data_to(w: std.fs.File.Writer, notdone: *std.ArrayList(u.Module), d | ... | @@ -220,7 +220,7 @@ fn print_pkg_data_to(w: std.fs.File.Writer, notdone: *std.ArrayList(u.Module), d |
| 220 | while (notdone.items.len > 0) { | 220 | while (notdone.items.len > 0) { |
| 221 | for (notdone.items) |mod, i| { | 221 | for (notdone.items) |mod, i| { |
| 222 | if (contains_all(mod.deps, done.items)) { | 222 | if (contains_all(mod.deps, done.items)) { |
| 223 | try w.print(" pub const _{s} = std.build.Pkg{{ .name = \"{s}\", .path = cache ++ \"/{}/{s}\", .dependencies = &[_]std.build.Pkg{{", .{ mod.id[0..12], mod.name, std.zig.fmtEscapes(mod.clean_path), mod.main }); | 223 | try w.print(" pub const _{s} = std.build.Pkg{{ .name = \"{s}\", .path = std.build.FileSource{{ .path = cache ++ \"/{}/{s}\" }}, .dependencies = &[_]std.build.Pkg{{", .{ mod.id[0..12], mod.name, std.zig.fmtEscapes(mod.clean_path), mod.main }); |
| 224 | for (mod.deps) |d| { | 224 | for (mod.deps) |d| { |
| 225 | if (d.main.len > 0) { | 225 | if (d.main.len > 0) { |
| 226 | try w.print(" _{s},", .{d.id[0..12]}); | 226 | try w.print(" _{s},", .{d.id[0..12]}); |