aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-05-16 17:01:27 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-05-17 05:18:51 -0700
commit5b06daf52bdeaf18b40909ef878e8b19b3d14019 (patch)
tree41b60da6d7db2119caa07a358487da00662d1173 /src
parentfd213accb8b55ba3675fad03fce8fb8742270b6d (diff)
downloadzig-5b06daf52bdeaf18b40909ef878e8b19b3d14019.tar.gz
zig-5b06daf52bdeaf18b40909ef878e8b19b3d14019.zip
zig cc: implement `-###` (dry run)
closes #7170
Diffstat (limited to 'src')
-rw-r--r--src/main.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.zig b/src/main.zig
index 2fd314def8..6ac8636c88 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -1796,11 +1796,11 @@ fn buildOutputType(
try clang_argv.append("-v");
},
.dry_run => {
+ // This flag means "dry run". Clang will not actually output anything
+ // to the file system.
verbose_link = true;
+ disable_c_depfile = true;
try clang_argv.append("-###");
- // This flag is supposed to mean "dry run" but currently this
- // will actually still execute. The tracking issue for this is
- // https://github.com/ziglang/zig/issues/7170
},
.for_linker => try linker_args.append(it.only_arg),
.linker_input_z => {