authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-05-16 17:01:27-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-05-17 05:18:51-07:00
log5b06daf52bdeaf18b40909ef878e8b19b3d14019
tree41b60da6d7db2119caa07a358487da00662d1173
parentfd213accb8b55ba3675fad03fce8fb8742270b6d

zig cc: implement `-###` (dry run)

closes #7170

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

src/main.zig+3-3
...@@ -1796,11 +1796,11 @@ fn buildOutputType(...@@ -1796,11 +1796,11 @@ fn buildOutputType(
1796 try clang_argv.append("-v");1796 try clang_argv.append("-v");
1797 },1797 },
1798 .dry_run => {1798 .dry_run => {
1799 // This flag means "dry run". Clang will not actually output anything
1800 // to the file system.
1799 verbose_link = true;1801 verbose_link = true;
1802 disable_c_depfile = true;
1800 try clang_argv.append("-###");1803 try clang_argv.append("-###");
1801 // This flag is supposed to mean "dry run" but currently this
1802 // will actually still execute. The tracking issue for this is
1803 // https://github.com/ziglang/zig/issues/7170
1804 },1804 },
1805 .for_linker => try linker_args.append(it.only_arg),1805 .for_linker => try linker_args.append(it.only_arg),
1806 .linker_input_z => {1806 .linker_input_z => {