3 ms·
Given this is a topic of slow c++ builds, mentioning LTCG should come with the caveat that it will absolutely destroy your compile times. It's also not infalli
by maccard 8y ago
Given this is a topic of slow c++ builds, mentioning LTCG should come with the caveat that it will absolutely destroy your compile times.
It's also not infallible and you might find it difficult to track a regression if introduced by someone silently breaking a heurestic in the optimiser.
- pjmlp 8y agoSure, I was only mentioning that it is possible. However with VC++ it doesn't seem to be that bad, when incremental compilation and linking are enabled.
- maccard 8y agoAccording to MS[0], LTCG doesn't work with /INCREMENTAL (note /LTCG:INCREMENTAL is different). For my use cases, LTCG is unusable for anything other than our overnight builds. [0] https://docs.microsoft.com/en-us/cpp/build/reference/ltcg-link-time-code-generation?view=vs-2017 https://docs.microsoft.com/en-us/cpp/build/reference/ltcg-li...