Open
Description
Incremental linking will allow for significantly faster link times, at the cost of binary size.
- Don't delete the output artifacts. The
.ilk
and.exe
or.dll
must remain from the previous run. - Don't pass
/OPT
to the linker or any other flag that is mutually exclusive with incremental linking. - Pass
/INCREMENTAL
to the linker. - The set of files passed to the linker must remain the same. If the codegen unit object files change names, then it will do a full link.
https://msdn.microsoft.com/en-us/library/4khtbfyf.aspx
Alternatively, provide LLD as a stable alternative to link.exe so users can benefit from faster links when they don't need any special features of link.exe.