[PATCH] D65430: Add `--write-dependencies` option, which is equivalent to compiler option -MD.

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 30 18:40:39 PDT 2019


phosek added inline comments.


================
Comment at: lld/ELF/Options.td:416
 
+defm write_dependencies: Eq<"write-dependencies", "Write a dep file">,
+  MetaVarName<"<path>">;
----------------
Have you considered naming the option `-dependency-file`? That's the name of the CC1 flag (see https://github.com/llvm/llvm-project/blob/master/clang/include/clang/Driver/Options.td#L606) and I think it'd be nice to make those consistent across different tools.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65430/new/

https://reviews.llvm.org/D65430





More information about the llvm-commits mailing list