SCons: Pass /Zc:__cplusplus in MSVC builds

This commit is contained in:
Thaddeus Crews
2024-08-28 15:29:42 -05:00
parent 88ed6af1e6
commit 4c84cb6ae8
2 changed files with 5 additions and 0 deletions

View File

@ -791,6 +791,8 @@ else:
# Note that this is still not complete conformance, as certain Windows-related headers
# don't compile under complete conformance.
env.Prepend(CCFLAGS=["/permissive-"])
# Allow use of `__cplusplus` macro to determine C++ standard universally.
env.Prepend(CXXFLAGS=["/Zc:__cplusplus"])
# Disable exception handling. Godot doesn't use exceptions anywhere, and this
# saves around 20% of binary size and very significant build time (GH-80513).