authorgravatar for rpkak@noreply.codeberg.orgrpkak <rpkak@noreply.codeberg.org> 2026-03-15 12:56:45+01:00
committergravatar for paul.verigo@gmail.comPavel Verigo <paul.verigo@gmail.com> 2026-06-29 19:10:19+02:00
log77a4c4bbcfc412bda8c0e17729a7f10ae7483636
treeb90fbf0c8a93c8a8def2cd0ca4a1ef27c9046052
parentba5420896d67f8e09d96e37a30477d7b091e015e

Compilation: remove early 'bin_file = null' which results in a 'defer if (comp.bin_file)' block to not be executed


1 files changed, 0 insertions(+), 5 deletions(-)

src/Compilation.zig-5
......@@ -3209,11 +3209,6 @@ pub fn update(comp: *Compilation, main_progress_node: std.Progress.Node) UpdateE
32093209 // cache manifest must not be written.
32103210 if (anyErrors(comp)) return;
32113211
3212 if (comp.bin_file) |lf| {
3213 lf.destroy();
3214 comp.bin_file = null;
3215 }
3216
32173212 // Failure here only means an unnecessary cache miss.
32183213 man.writeManifest() catch |err| log.warn("failed to write cache manifest: {t}", .{err});
32193214