mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-10-28 10:45:48 +08:00
main: reimplement compiler debug flags
* Add `.llvmbc`/`.llvmir` to `ObjectFormat` for emitting unoptimized IR * Replace `--verbose-air`, `--verbose-intern-pool`, `--verbose-generic-instances`, `--verbose-llvm-ir`, and `--verbose-llvm-bc` with various `--debug-log` scopes * `--debug-log illegal-air`: pre-legalized Air * `--debug-log legal-air`: post-legalized Air * `--debug-log air`: final Air with liveness * `--debug-log ip-stats`: InternPool statistics * `--debug-log ip-values`: InternPool values * `--debug-log ip-generic-instances`: InternPool generic instances * `--debug-log llvm-ir`: pre-optimized LLVM IR * `--debug-log opt-llvm-ir`: post-optimized LLVM IR * Delete `--verbose-cimport` which does nothing * Delete `--verbose-llvm-cpu-features` which is equivalent to looking at the outputs of `--show-builtin` and `--debug-log llvm-ir`
This commit is contained in:
1 parent
77576c9603
commit
f08a8f0fc2
48 files changed
+349
-421
No files matched your search
+1
-1
@@ -179,7 +179,7 @@ int main(int argc, char **argv) {
|
||||
"pub const version: [:0]const u8 = \"%s\";\n"
|
||||
"pub const semver = @import(\"std\").SemanticVersion.parse(version) catch unreachable;\n"
|
||||
"pub const enable_debug_extensions = false;\n"
|
||||
"pub const enable_logging = false;\n"
|
||||
"pub const log_level: @import(\"std\").log.Level = .err;\n"
|
||||
"pub const enable_link_snapshots = false;\n"
|
||||
"pub const enable_tracy = false;\n"
|
||||
"pub const value_tracing = false;\n"
|
||||
|
||||
Reference in new issue
Block a user