Skip to content

Conversation

@nickclark2016
Copy link
Member

What does this PR do?

Adds C++23 for non-makefile VS projects.

How does this PR change Premake's behavior?

For non-makefile projects, uses the stdcpp23 value in the vcxproj files. For makefile projects, this causes /std:c++latest to be used.

Anything else we should know?

The value /std:c++23preview does exist, but it is a temporary flag that will go away with the full release of /std:c++23. I have opted to use /std:c++latest, as that flag will be around for the foreseeable future. Once /std:c++23 is in full release, another PR will be needed to use it in msc.lua and in the makefile project configuration of vs2010_vcxproj.lua.

@nickclark2016 nickclark2016 requested a review from a team September 15, 2025 17:24
@nickclark2016 nickclark2016 force-pushed the feature/cpp23-dialect-vs branch from 992a64d to 8bff918 Compare September 15, 2025 17:29
@samsinsane samsinsane merged commit 663eb34 into premake:master Sep 16, 2025
96 of 98 checks passed
@Jarod42
Copy link
Contributor

Jarod42 commented Sep 16, 2025

@nickclark2016
Copy link
Member Author

How about https://github.com/premake/premake-core/blob/master/src/tools/msc.lua#L211 ?

This is being deferred until the stable flag is released.

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.

3 participants