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.
This commit is contained in:
Andrew Kelley 2022-05-01 15:43:52 -07:00
parent 82b96ca0de
commit 1387d2f5ac

View File

@ -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)});
};