From abeab3b74c5cefc398f80dc0d2ec7c7e9cd64d21 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Thu, 2 Dec 2021 01:15:54 -0800 Subject: [PATCH] cmd/fetch- use writeAll over print --- src/cmd/fetch.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.54.0