Skip to content

Commit c2983a3

Browse files
mluggjacobly0
authored andcommitted
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 parent 0367d68 commit c2983a3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main.zig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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();

0 commit comments

Comments
 (0)