| ... | @@ -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 | } |
| 78 | | 76 | |
| 79 | fn fetch_deps(dir: []const u8, mpath: []const u8) anyerror!u.Module { | 77 | fn fetch_deps(dir: []const u8, mpath: []const u8) anyerror!u.Module { |