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(
17961796 try clang_argv.append("-v");
17971797 },
17981798 .dry_run => {
1799 // This flag means "dry run". Clang will not actually output anything
1800 // to the file system.
17991801 verbose_link = true;
1802 disable_c_depfile = true;
18001803 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
18041804 },
18051805 .for_linker => try linker_args.append(it.only_arg),
18061806 .linker_input_z => {