mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
stage2: fix not calling deinit() on whole_cache_manifest
Need to mark it as "needing cleanup" a bit earlier in the function.
This commit is contained in:
parent
0ad2a99675
commit
208a6c7d6a
@ -1926,6 +1926,7 @@ pub fn update(comp: *Compilation) !void {
|
||||
// We are about to obtain this lock, so here we give other processes a chance first.
|
||||
comp.bin_file.releaseLock();
|
||||
|
||||
comp.whole_cache_manifest = &man;
|
||||
man = comp.cache_parent.obtain();
|
||||
try comp.addNonIncrementalStuffToCacheManifest(&man);
|
||||
|
||||
@ -1960,8 +1961,6 @@ pub fn update(comp: *Compilation) !void {
|
||||
}
|
||||
log.debug("CacheMode.whole cache miss for {s}", .{comp.bin_file.options.root_name});
|
||||
|
||||
comp.whole_cache_manifest = &man;
|
||||
|
||||
// Initialize `bin_file.emit` with a temporary Directory so that compilation can
|
||||
// continue on the same path as incremental, using the temporary Directory.
|
||||
tmp_artifact_directory = d: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user