| author | |
| committer | |
| log | 5a04adea0d459efc2ea2f15e4ceac0d5277d86fd |
| tree | b4f7787564f0529f5d420ca270137bf09c0ba40f |
| parent | 778d8d5596d64c171f669ae198e13529ac511330 |
2 files changed, 4 insertions(+), 0 deletions(-)
src/cmd/fetch.zig+2| ... | @@ -67,6 +67,8 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D | ... | @@ -67,6 +67,8 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D |
| 67 | \\ exe.linkSystemLibrary(libname); | 67 | \\ exe.linkSystemLibrary(libname); |
| 68 | \\ exe.linkLibC(); | 68 | \\ exe.linkLibC(); |
| 69 | \\ } | 69 | \\ } |
| 70 | \\ // clear module memo cache so addAllTo can be called more than once in the same build.zig | ||
| 71 | \\ inline for (comptime std.meta.declarations(package_data)) |decl| @field(package_data, decl.name).module_memo = null; | ||
| 70 | \\} | 72 | \\} |
| 71 | \\ | 73 | \\ |
| 72 | \\var link_lib_c = false; | 74 | \\var link_lib_c = false; |
src/cmd/generate.zig+2| ... | @@ -133,6 +133,8 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D | ... | @@ -133,6 +133,8 @@ pub fn create_depszig(alloc: std.mem.Allocator, cachepath: string, dir: std.fs.D |
| 133 | \\ const module = pkg.module(exe, fetch_step); | 133 | \\ const module = pkg.module(exe, fetch_step); |
| 134 | \\ exe.root_module.addImport(pkg.name, module); | 134 | \\ exe.root_module.addImport(pkg.name, module); |
| 135 | \\ } | 135 | \\ } |
| 136 | \\ // clear module memo cache so addAllTo can be called more than once in the same build.zig | ||
| 137 | \\ inline for (comptime std.meta.declarations(package_data)) |decl| @field(package_data, decl.name).module_memo = null; | ||
| 136 | \\} | 138 | \\} |
| 137 | \\ | 139 | \\ |
| 138 | \\var link_lib_c = false; | 140 | \\var link_lib_c = false; |