I spent some time on this today, but couldn’t figure out the answer, I would appreciate if somebody could chime in!
If I just create a fresh plugin project and compile the release code, I’ll get a warning for all formats:
“Not all modules are compiled with -Gy (function comdat), build without incremental LTCG.”
So the question is, does this mean LTCG is ignored fully, or does this mean it will still use Link Time Code Generation, but not with the Incremental option (Juce adds “/LTCG: incremental” as a linker flag).
I can get rid of this warning by adding “/Gy” by hand as an extra compiler option in Projucer, but if
“/LTCG: incremental” is default in Juce, and it needs the “/Gy” option, then why Projucer is not adding the latter to the projects as default?
Obviously if the warning doesn’t mean that it will totally discard /LTCG, but instead of “”/LTCG: incrememntal" it will fall back to “/LTCG” then all good, it’s just a bit confusing to see a warning there that says LTCG won’t be used.