Commit 1387d2f5ac

Andrew Kelley <andrew@ziglang.org>
2022-05-02 00:43:52
zig build: use CacheMode.whole for build_runner.zig
Maybe after we have incremental compilation metadata serialization and non-LLVM backends, it will make sense to switch this back. For now, however, this makes successive `zig build` commands much faster.
1 parent 82b96ca
Changed files (1)
src/main.zig
@@ -3677,6 +3677,7 @@ pub fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !voi
             .self_exe_path = self_exe_path,
             .thread_pool = &thread_pool,
             .use_stage1 = use_stage1,
+            .cache_mode = .whole,
         }) catch |err| {
             fatal("unable to create compilation: {s}", .{@errorName(err)});
         };