diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-05-26 17:44:23 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-10 20:47:56 -0700 |
| commit | a596ea683c35d90c6af3e1fbeae2e06312ce392f (patch) | |
| tree | 2da3ac1beb27115081051cb152a79ca8cb0521d0 /src/main.zig | |
| parent | 8011faa0049df757bab78310af824b283220bcac (diff) | |
| download | zig-a596ea683c35d90c6af3e1fbeae2e06312ce392f.tar.gz zig-a596ea683c35d90c6af3e1fbeae2e06312ce392f.zip | |
CLI: introduce --verbose-intern-pool
and stop dumping to stderr without the user's consent.
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index 4acd305ce7..5d666840c0 100644 --- a/src/main.zig +++ b/src/main.zig @@ -569,6 +569,7 @@ const usage_build_generic = \\ --verbose-link Display linker invocations \\ --verbose-cc Display C compiler invocations \\ --verbose-air Enable compiler debug output for Zig AIR + \\ --verbose-intern-pool Enable compiler debug output for InternPool \\ --verbose-llvm-ir[=path] Enable compiler debug output for unoptimized LLVM IR \\ --verbose-llvm-bc=[path] Enable compiler debug output for unoptimized LLVM BC \\ --verbose-cimport Enable compiler debug output for C imports @@ -735,6 +736,7 @@ fn buildOutputType( var verbose_link = (builtin.os.tag != .wasi or builtin.link_libc) and std.process.hasEnvVarConstant("ZIG_VERBOSE_LINK"); var verbose_cc = (builtin.os.tag != .wasi or builtin.link_libc) and std.process.hasEnvVarConstant("ZIG_VERBOSE_CC"); var verbose_air = false; + var verbose_intern_pool = false; var verbose_llvm_ir: ?[]const u8 = null; var verbose_llvm_bc: ?[]const u8 = null; var verbose_cimport = false; @@ -1460,6 +1462,8 @@ fn buildOutputType( verbose_cc = true; } else if (mem.eql(u8, arg, "--verbose-air")) { verbose_air = true; + } else if (mem.eql(u8, arg, "--verbose-intern-pool")) { + verbose_intern_pool = true; } else if (mem.eql(u8, arg, "--verbose-llvm-ir")) { verbose_llvm_ir = "-"; } else if (mem.startsWith(u8, arg, "--verbose-llvm-ir=")) { @@ -3156,6 +3160,7 @@ fn buildOutputType( .verbose_cc = verbose_cc, .verbose_link = verbose_link, .verbose_air = verbose_air, + .verbose_intern_pool = verbose_intern_pool, .verbose_llvm_ir = verbose_llvm_ir, .verbose_llvm_bc = verbose_llvm_bc, .verbose_cimport = verbose_cimport, |
