[PATCH] D42716: [COFF] make /incremental control overwriting unchanged import libraries

Bob Haarman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 30 15:53:13 PST 2018


inglorion created this revision.
inglorion added reviewers: rnk, ruiu, zturner.

r323164 made lld-link not overwrite import libraries when
their contents haven't changed. MSVC's link.exe does this only when
performing incremental linking. This change makes lld-link's import
library overwriting similarly dependent on whether or not incremental
linking is being performed. It also matches link.exe's behavior of
/incremental enabling incremental linking, /incremental:no disabling it,
/debug enabling incremental linking implicitly, /opt:icf and /opt:ref
disabling incremental linking and issuing a warning if /incremental was
also passed.


https://reviews.llvm.org/D42716

Files:
  lld/COFF/Config.h
  lld/COFF/Driver.cpp
  lld/COFF/Options.td
  lld/test/COFF/incremental.test
  lld/test/COFF/unchanged-importlib.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42716.132069.patch
Type: text/x-patch
Size: 8754 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180130/ffc1dbf8/attachment.bin>


More information about the llvm-commits mailing list