authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-28 19:15:12 -08:00
committergravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-12-28 19:15:12 -08:00
log377b65529386eec23ab438e6d106b004b4d8c553
tree05af0cc206aa4808a5bb37974b32c994b5818cdf
parent58d84ba634f55ea77398fd8a80aae05bd3eaa8a7

fixes #5


1 files changed, 1 insertions(+), 3 deletions(-)

src/cmd_fetch.zig+1-3
...@@ -23,8 +23,7 @@ pub fn execute(args: [][]u8) !void {...@@ -23,8 +23,7 @@ pub fn execute(args: [][]u8) !void {
23 try w.print("const std = @import(\"std\");\n", .{});23 try w.print("const std = @import(\"std\");\n", .{});
24 try w.print("const build = std.build;\n", .{});24 try w.print("const build = std.build;\n", .{});
25 try w.print("\n", .{});25 try w.print("\n", .{});
26 try w.print("const home = \"{}\";\n", .{home});26 try w.print("const cache = \"{Z}\";\n", .{dir});
27 try w.print("const cache = home ++ \"/.cache/zigmod/deps\";\n", .{});
28 try w.print("\n", .{});27 try w.print("\n", .{});
29 try w.print("{}\n", .{28 try w.print("{}\n", .{
30 \\pub fn addAllTo(exe: *build.LibExeObjStep) void {29 \\pub fn addAllTo(exe: *build.LibExeObjStep) void {
...@@ -73,7 +72,6 @@ pub fn execute(args: [][]u8) !void {...@@ -73,7 +72,6 @@ pub fn execute(args: [][]u8) !void {
73 try w.print("{}\n", .{"pub const system_libs = &[_][]const u8{"});72 try w.print("{}\n", .{"pub const system_libs = &[_][]const u8{"});
74 try print_sys_libs_to(w, top_module, &std.ArrayList([]const u8).init(gpa), &std.ArrayList([]const u8).init(gpa));73 try print_sys_libs_to(w, top_module, &std.ArrayList([]const u8).init(gpa), &std.ArrayList([]const u8).init(gpa));
75 try w.print("{};\n", .{"}"});74 try w.print("{};\n", .{"}"});
76
77}75}
7876
79fn fetch_deps(dir: []const u8, mpath: []const u8) anyerror!u.Module {77fn fetch_deps(dir: []const u8, mpath: []const u8) anyerror!u.Module {