authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-09-14 15:53:51-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-09-16 13:12:47-07:00
log7911f377441a1717ac1ab82933af826926b29ff7
treec1f63f40af7a47de07d5017ae277fb3d8ab02c79
parentb9794c89ac4a6a82286382d04f22bb47374594ff

Compilation: refactor a couple log messages


1 files changed, 3 insertions(+), 6 deletions(-)

src/Compilation.zig+3-6
......@@ -3007,7 +3007,7 @@ pub fn update(comp: *Compilation, main_progress_node: std.Progress.Node) UpdateE
30073007 }
30083008
30093009 if (build_options.enable_debug_extensions and comp.verbose_intern_pool) {
3010 std.debug.print("intern pool stats for '{s}':\n", .{comp.root_name});
3010 std.debug.print("intern pool stats for {q}:\n", .{comp.root_name});
30113011 zcu.intern_pool.dump();
30123012 }
30133013
......@@ -3019,11 +3019,8 @@ pub fn update(comp: *Compilation, main_progress_node: std.Progress.Node) UpdateE
30193019
30203020 if (comp.link_depfile) |depfile_path| if (comp.bin_file) |lf| {
30213021 assert(comp.file_system_inputs != null);
3022 comp.createDepFile(depfile_path, lf.emit) catch |err| comp.setMiscFailure(
3023 .link_depfile,
3024 "unable to write linker dependency file: {t}",
3025 .{err},
3026 );
3022 comp.createDepFile(depfile_path, lf.emit) catch |err|
3023 comp.setMiscFailure(.link_depfile, "writing linker dependency file failed: {t}", .{err});
30273024 };
30283025
30293026 if (anyErrors(comp)) {