+"LTCG" stands for *link-time code generation*, which enables build optimizations beyond what the compiler can provide for a single translation unit. The feature requires cooperation between the compiler ([cl.exe](compiler-options.md)), LIB, and the linker ([LINK](linker-options.md)). For LIB, the **/LTCG** option specifies that the inputs from cl.exe include object files that were generated by using the [/GL](gl-whole-program-optimization.md) compiler option. If LIB.exe encounters such inputs and **/LTCG** is not specified, it will restart with /LTCG enabled after displaying an informational message. Although it is not necessary to explicitly set this option, it speeds up build performance to do so because LIB does not have to restart itself.
0 commit comments