authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-05-01 15:43:52-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-05-01 15:43:52-07:00
log1387d2f5acf65ed809254f266788f65f8379a3a2
tree35093938406a2741cbac2c7d18d93e11899424c9
parent82b96ca0de47efb677864b33c304565e6856da73

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 files changed, 1 insertions(+), 0 deletions(-)

src/main.zig+1
...@@ -3677,6 +3677,7 @@ pub fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !voi...@@ -3677,6 +3677,7 @@ pub fn cmdBuild(gpa: Allocator, arena: Allocator, args: []const []const u8) !voi
3677 .self_exe_path = self_exe_path,3677 .self_exe_path = self_exe_path,
3678 .thread_pool = &thread_pool,3678 .thread_pool = &thread_pool,
3679 .use_stage1 = use_stage1,3679 .use_stage1 = use_stage1,
3680 .cache_mode = .whole,
3680 }) catch |err| {3681 }) catch |err| {
3681 fatal("unable to create compilation: {s}", .{@errorName(err)});3682 fatal("unable to create compilation: {s}", .{@errorName(err)});
3682 };3683 };