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

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 30 17:30:24 PDT 2019


ruiu added a comment.

In D65430#1605980 <https://reviews.llvm.org/D65430#1605980>, @peter.smith wrote:

> No objections to the idea in principle. I think it may need a bit of wider discussion to reach its full potential though. My understanding is that many developers use makefile/ninja generation systems such as cmake rather than hand-write the file themselves. As such would this get much use unless it was integrated into these generators? May be worth approaching them to see if they have any requirements/observations about the option?


These generators like cmake don't know the complete picture of the dependency list -- for example, if you pass -fsanitize to the compiler, it links libasan, and if you update libasan, you may want to rebuild your executable again, but that dependency cannot be tracked by cmake.

You are right that this probably needs wider discussion. I'll start a thread at llvm-dev.


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