TeamTalk5 icon indicating copy to clipboard operation
TeamTalk5 copied to clipboard

Add /LTCG option

Open hwangsihu opened this issue 3 months ago • 5 comments

hwangsihu avatar Dec 06 '25 01:12 hwangsihu

What exactly is the benefit of this change? When I look at the size of TeamTalk5.dll on main branch and ltcg branch then it's exactly the same.

bear101 avatar Dec 10 '25 08:12 bear101

What exactly is the benefit of this change? When I look at the size of TeamTalk5.dll on main branch and ltcg branch then it's exactly the same.

Sorry, I just checked. When compiling most files, you'll see a warning message saying that using the /ltcg option will improve linker performance. This is in response to the warning.

hwangsihu avatar Dec 13 '25 06:12 hwangsihu

Looking at the build times I don't see any improvements in build time compared to master branch

bear101 avatar Dec 14 '25 19:12 bear101

But wouldn't it be nice if we could get rid of the warning message?

hwangsihu avatar Dec 14 '25 22:12 hwangsihu

By default VS2022 sets Link Time Code Generation to nothing (blank) for Debug and /LTCG:incremental for Release builds on DLL projects.

bear101 avatar Dec 17 '25 08:12 bear101

Then why does this warning appear?

hwangsihu avatar Dec 22 '25 09:12 hwangsihu