aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-03-04 18:14:00 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-03-04 18:14:00 -0700
commit041212a41cfaf029dc3eb9740467b721c76f406c (patch)
tree2eac3522d4a0238ddd5d74a142d8f0193e2aecf7 /src/Compilation.zig
parent98b24aa47f98d9c70d1e152228ac89dd41e0f637 (diff)
downloadzig-041212a41cfaf029dc3eb9740467b721c76f406c.tar.gz
zig-041212a41cfaf029dc3eb9740467b721c76f406c.zip
zig cc: fix handling of -MM flag
Clang docs say: > Like -MMD, but also implies -E and writes to stdout by default. Previously, Zig handled this option by forwarding it directly to Clang, and disabling depfiles. However this did not adhere to Clang's documented behavior of these flags. Now, in addition to being forwarded directly to Clang, `-MM` also sets c_out_mode = .preprocessor, just like `-E`. Another issue I noticed is that Zig did not recognize the aliases for -MG, -MM, or -MMD. The aliases are now recognized.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions