From 1387d2f5acf65ed809254f266788f65f8379a3a2 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 1 May 2022 15:43:52 -0700 Subject: [PATCH] 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. --- src/main.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.zig b/src/main.zig index 1538e86225..4d69bd51c7 100644 --- 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)}); };