Skip to content

Conversation

@withmorten
Copy link
Contributor

fix visual studio LinkTimeOptimization default not setting WholeProgramOptimization to true
default for newly created .vcxproj in Visual Studio is WholeProgramOptimization set to true, but LinkTimeCodeGeneration unset, resulting in the default LTCG:Incremental being used
this got overlooked in the api change for LinkTimeOptimization from flags

What does this PR do?

^ see commit description

How does this PR change Premake's behavior?

This changes the behaviour for vc2010 projects when using LinkTimeOptimization "Default".

Anything else we should know?

Context: #2343

I'm realising that the "default" is probably actually the "default" and will change all vs2010 projects. Maybe it would be better to add an "incremental" option in addition to "on", "off", "default", so LTCG:incremental can be used?

Did you check all the boxes?

  • Focus on a single fix or feature; remove any unrelated formatting or code changes
  • Add unit tests showing fix or feature works; all tests pass
  • Mention any related issues (put closes #XXXX in comment to auto-close issue when PR is merged)
  • Follow our coding conventions
  • Minimize the number of commits
  • Align documentation to your changes

You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!

…amOptimization to true

default for newly created .vcxproj in Visual Studio is WholeProgramOptimization set to true, but LinkTimeCodeGeneration unset, resulting in the default LTCG:Incremental being used
this got overlooked in the api change for LinkTimeOptimization from flags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant