zig/tools
Andrew Kelley 041212a41c 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.
2021-03-04 18:14:00 -07:00
..
gen_spirv_spec.zig
gen_stubs.zig
merge_anal_dumps.zig
process_headers.zig
update_clang_options.zig zig cc: fix handling of -MM flag 2021-03-04 18:14:00 -07:00
update_glibc.zig
zig_gdb_pretty_printers.py
zig-gdb.py