Skip to content

Conversation

@Jarod42
Copy link
Contributor

@Jarod42 Jarod42 commented Oct 27, 2024

What does this PR do?

Fix flags { "LinkTimeOptimization" } to add missing xml entity LinkTimeCodeGeneration.

How does this PR change Premake's behavior?

Generated visual solutions with flags { "LinkTimeOptimization" } would be modified

Anything else we should know?

@StanleySweet Can you verify it fix your issue.

closes #2312

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

Copy link

@StanleySweet StanleySweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work for me. Out of curiosity, is it possible to set the other types of /LCTG with this patch? e.g:

 <LinkTimeCodeGeneration>UseFastLinkTimeCodeGeneration</LinkTimeCodeGeneration>

The current patch covers my case, so I'm approving it.

@nickclark2016
Copy link
Member

Future Note: We should add this as a dedicated API member and deprecate the flag.

@nickclark2016 nickclark2016 merged commit 490686c into premake:master Oct 30, 2024
15 checks passed
@Jarod42 Jarod42 deleted the LinkTimeCodeGeneration branch October 30, 2024 23:50
noresources pushed a commit to depinxi/premake-core that referenced this pull request Nov 8, 2024
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.

LinkTimeOptimization does not add the LinkTimeCodeGeneration xml tag to Visual Studio projects

4 participants