[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 02:52:44 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:
> ruiu wrote:
> > 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.
> I think the phrase "statically-linked system libraries" is not accurate. Neither a system `.a` nor a system `.so` is statically linked.
I feel it is colloquially OK, but precisely speaking, you are right. How about this? "even though system libraries that are linked to your executable statically are a part of your program." 


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