[PATCH] D42326: [COFF] add option to avoid overwriting unchanged import libraries
Bob Haarman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 19 16:50:09 PST 2018
inglorion created this revision.
inglorion added reviewers: rnk, ruiu, zturner.
This adds a -keep-unchanged-implib option to lld-link, which causes it to not
overwrite an import library when one already exists and its contents are
identical to the one it would be overwritten with. The use case for this is
to avoid needlessly rebuilding targets that depend on the import library in
build systems that rely on timestamps to determine whether a target requires
rebuilding.
This feature was requested in PR35917.
https://reviews.llvm.org/D42326
Files:
lld/COFF/Config.h
lld/COFF/Driver.cpp
lld/COFF/Options.td
lld/test/COFF/unchanged-importlib.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42326.130725.patch
Type: text/x-patch
Size: 4095 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180120/4fc8f63e/attachment.bin>
More information about the llvm-commits
mailing list