diff --git a/src/cmd/fetch.zig b/src/cmd/fetch.zig index 113749169d5fe2a9507062b9416532c9fa991e44..9d836990d3b9c6e136b5b9fcaf84400d8507dd29 100644 --- a/src/cmd/fetch.zig +++ b/src/cmd/fetch.zig @@ -51,7 +51,7 @@ pub fn create_depszig(cachepath: string, dir: std.fs.Dir, top_module: zigmod.Mod try w.writeAll("\n"); try w.print("pub const cache = \"{}\";\n", .{std.zig.fmtEscapes(cachepath)}); try w.writeAll("\n"); - try w.print("{s}\n", .{ + try w.writeAll( \\pub fn addAllTo(exe: *std.build.LibExeObjStep) void { \\ @setEvalBranchQuota(1_000_000); \\ for (packages) |pkg| { @@ -87,7 +87,8 @@ pub fn create_depszig(cachepath: string, dir: std.fs.Dir, top_module: zigmod.Mod \\ system_libs: []const string = &.{}, \\}; \\ - }); + \\ + ); try w.writeAll("const dirs = struct {\n"); try print_dirs(w, list.items);