[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
Mon Jul 29 22:53:24 PDT 2019


ruiu marked an inline comment as done.
ruiu added inline comments.


================
Comment at: lld/ELF/Driver.cpp:1393
+// because you don't know the exact paths of libraries, even though
+// statically-linked system libraries are technically a part of your
+// program. By using --write-dependencies option, you can make lld to dump
----------------
MaskRay wrote:
> `statically-linked` -> ``
> 
> a.o/b.a/c.so are not statically linked..
Yeah, and in that case, c.so is not part of your program, and it is not wrong to say that your executable does not really depend on c.so at link-time as long as c.so maintains a stable API.


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