authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-02-23 01:17:23+00:00
committergravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2025-03-02 16:39:18-05:00
logc2983a3f88411c1c9c20582c43054c07cbbd88b3
treec00bf99a22915a00c2fc62ffa2911f5e635e3f41
parent0367d684fccf8bf011fe8ac1a984820c824871a8

compiler: default to `.whole` cache mode for self-hosted backends

This is a better default cache mode until incremental compilation is enabled by default.

1 files changed, 5 insertions(+), 1 deletions(-)

src/main.zig+5-1
......@@ -3470,7 +3470,11 @@ fn buildOutputType(
34703470 // incremental cache mode is used for LLVM backend too.
34713471 if (create_module.resolved_options.use_llvm) break :b .whole;
34723472
3473 break :b .incremental;
3473 // Eventually, this default should be `.incremental`. However, since incremental
3474 // compilation is currently an opt-in feature, it makes a strictly worse default cache mode
3475 // than `.whole`.
3476 // https://github.com/ziglang/zig/issues/21165
3477 break :b .whole;
34743478 };
34753479
34763480 process.raiseFileDescriptorLimit();