From 40e1fca34b2c0d2cde130fd17331a2935c473644 Mon Sep 17 00:00:00 2001 From: kcbanner Date: Sat, 15 Apr 2023 22:20:34 -0400 Subject: compilation: fix non-zig compilations not using CacheMode.whole main: consume --debug-log argument even when logging is disabled --- src/Compilation.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index 4c3e49fb52..063b5fd489 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -780,7 +780,7 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { // compiler state, the second clause here can be removed so that incremental // cache mode is used for LLVM backend too. We need some fuzz testing before // that can be enabled. - const cache_mode = if (use_llvm and !options.disable_lld_caching) + const cache_mode = if ((use_llvm or options.main_pkg == null) and !options.disable_lld_caching) CacheMode.whole else options.cache_mode; -- cgit v1.2.3