cosmopolitan/tool
Trung Nguyen 83a8686c06
tool/cosmocc: Properly handle dependency output (#1091)
a2753de contains some regressions, causing `fixupobj` to be
inappropriately suppressed when `-MD` or `-MMD` is passed.

This commit reverts most changes by a2753de, and:
- Treats all invocations of the compiler with `-M` and `-MM` as with the
`cpp` intent, since these flags imply `-E`.
- Handle the dependency output path specified by `-MF`.
  + This is trivial for `cosmocross` since the script does not throw
  objects to and from temporary directories.
  + For `cosmocc`, the file names are calculated based on the `-MF`
  value provided by the user. If this flag is not specified, the script
  generates the file name based on the output file using GCC rules.
  Then, before calling the real compilers, an additional `-MF` flag is
  passed to override the dependency outputs with mangled file names.
2024-01-22 10:22:16 -08:00
..
args Make ... optional in .args (#1086) 2024-01-15 16:20:50 -08:00
build Increase build memory quota 2024-01-22 10:02:30 -08:00
cosmocc tool/cosmocc: Properly handle dependency output (#1091) 2024-01-22 10:22:16 -08:00
curl Bring back gc() function 2024-01-08 10:26:28 -08:00
decode Bring back gc() function 2024-01-08 10:26:28 -08:00
emacs Add some Emacs keywords for CUDA 2023-12-14 19:55:56 -08:00
hello Use DNS implementation from Musl Libc 2023-12-28 23:04:35 -08:00
lambda more modeline errata (#1019) 2023-12-16 23:07:10 -05:00
net Add Curve25519 method in help.txt + add new specs file (#1096) 2024-01-21 06:58:48 -08:00
plinko more modeline errata (#1019) 2023-12-16 23:07:10 -05:00
scripts Fix more vi modelines (#1006) 2023-12-13 02:28:11 -05:00
viz Add more Intel microarchitectures 2024-01-09 01:54:26 -08:00
zsh mkofs improvements 2024-01-08 17:23:09 +00:00
BUILD.mk more modeline errata (#1019) 2023-12-16 23:07:10 -05:00