aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-07-24 17:41:44 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-07-25 18:52:21 -0700
commita3c74aca99c7eaf719c745ec6e9ee7366cad1910 (patch)
treeb0396505cb9623d1a906501ed97905f7cc8bb6c6 /src/Compilation.zig
parent90dfd86ebee1639e5455ace4e34157ff9b68ac0f (diff)
downloadzig-a3c74aca99c7eaf719c745ec6e9ee7366cad1910.tar.gz
zig-a3c74aca99c7eaf719c745ec6e9ee7366cad1910.zip
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
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig4
1 files changed, 3 insertions, 1 deletions
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