Add missing C++17 flag for Windows build in GDNative SConstruct (#4709)

This matches macOS and Linux.
This commit is contained in:
Bengt Söderström
2021-03-03 16:15:46 +02:00
committed by GitHub
parent f73f012e8e
commit e2edc04ba6

View File

@@ -76,6 +76,7 @@ elif env['platform'] == "windows":
env.Append(CPPDEFINES=['WIN32', '_WIN32', '_WINDOWS', '_CRT_SECURE_NO_WARNINGS'])
env.Append(CCFLAGS=['-W3', '-GR'])
env.Append(CXXFLAGS='/std:c++17')
if env['target'] in ('debug', 'd'):
env.Append(CPPDEFINES=['_DEBUG'])
env.Append(CCFLAGS=['-EHsc', '-MDd', '-ZI'])