commit 1387d2f5acf65ed809254f266788f65f8379a3a2 (tree)
parent 82b96ca0de47efb677864b33c304565e6856da73
Author: Andrew Kelley <andrew@ziglang.org>
Date: Sun, 1 May 2022 15:43:52 -0700
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.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/main.zig b/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)});
};