Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCons: Pass /Zc:__cplusplus in MSVC builds #96244

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

Repiteo
Copy link
Contributor

@Repiteo Repiteo commented Aug 28, 2024

Passing this C++ flag on MSVC will allow __cplusplus to function like it does on every sensible compiler: specifying the C++ Standard used. While a largely superfluous addition when we're locked to C++17 atm, I wanted to separate this from the C++20 PR because this macro could have potential ramifications on its own. Based off local testing, that doesn't seem to be the case, but I wanted to ensure this change was in as controlled of an environment as possible.

@Repiteo Repiteo added this to the 4.x milestone Aug 28, 2024
@Repiteo Repiteo requested review from a team as code owners August 28, 2024 20:37
SConstruct Outdated Show resolved Hide resolved
core/typedefs.h Outdated Show resolved Hide resolved
@Repiteo Repiteo force-pushed the scons/msvc-__cplusplus branch from f37bc83 to 4c84cb6 Compare September 5, 2024 16:45
@akien-mga akien-mga modified the milestones: 4.x, 4.4 Sep 5, 2024
@akien-mga akien-mga merged commit a8e3feb into godotengine:master Sep 5, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@Repiteo Repiteo deleted the scons/msvc-__cplusplus branch September 5, 2024 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants