diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-12-30 21:01:20 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-02 13:16:17 -0700 |
| commit | 208a6c7d6a58c1fc46ed832acaa8a882f1c6a1dd (patch) | |
| tree | 1a3e0df78c6d3beefe0d721cbc065f2e025b1f11 /src/Compilation.zig | |
| parent | 0ad2a99675d331c686847a7b2a84feddfcce6573 (diff) | |
| download | zig-208a6c7d6a58c1fc46ed832acaa8a882f1c6a1dd.tar.gz zig-208a6c7d6a58c1fc46ed832acaa8a882f1c6a1dd.zip | |
stage2: fix not calling deinit() on whole_cache_manifest
Need to mark it as "needing cleanup" a bit earlier in the function.
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index e71c84af33..9361159c4e 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -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: { |
