aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index ac48804848..ddf331d4f3 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -899,7 +899,10 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation {
break :blk build_options.is_stage1;
};
- const cache_mode = if (use_stage1) CacheMode.whole else options.cache_mode;
+ const cache_mode = if (use_stage1 and !options.disable_lld_caching)
+ CacheMode.whole
+ else
+ options.cache_mode;
// Make a decision on whether to use LLVM or our own backend.
const use_llvm = build_options.have_llvm and blk: {
@@ -1951,8 +1954,6 @@ pub fn update(comp: *Compilation) !void {
};
}
- comp.emitOthers();
-
assert(comp.bin_file.lock == null);
comp.bin_file.lock = man.toOwnedLock();
return;