Can MS employees here confirm whether the modern (CL >= 14) compilers are fine combining "link-time code generation" aka "whole program optimization" (LTCG or /GL) with precompiled headers?
MSDN page says that this combination is not safe in some scenarios, since the PCH file is a must for link phase of LTCG, thus LTCG cannot be used for LIBs shared across machines.
Nevertheless, the practical attempt (linking a LIB with all its source, PCH and OBJ files deleted and full path to the build dir renamed to break the possible embedded full pathnames in the LIB) says it works with WDK 6001.18002, which uses LTCG for x64 builds.
Also, the MS's person on Answers said that these features should not and do not have interops.
Is the MSDN page obsolete?
Maxim S. Shatskih
Microsoft MVP on File System And Storage