From a3c74aca99c7eaf719c745ec6e9ee7366cad1910 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 24 Jul 2024 17:41:44 -0700 Subject: add --debug-rt CLI arg to the compiler + bonus edits The flag makes compiler_rt and libfuzzer be in debug mode. Also: * fuzzer: override debug logs and disable debug logs for frequently called functions * std.Build.Fuzz: fix bug of rerunning the old unit test binary * report errors from rebuilding the unit tests better * link.Elf: additionally add tsan lib and fuzzer lib to the hash --- src/Compilation.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index bc5a2bb456..8808e72e04 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -2180,7 +2180,9 @@ pub fn update(comp: *Compilation, main_progress_node: std.Progress.Node) !void { comp.bin_file = try link.File.createEmpty(arena, comp, emit, whole.lf_open_opts); } }, - .incremental => {}, + .incremental => { + log.debug("Compilation.update for {s}, CacheMode.incremental", .{comp.root_name}); + }, } // From this point we add a preliminary set of file system inputs that -- cgit v1.2.3