Переглянути джерело

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

This matches macOS and Linux.
Hugo Locurcio 4 роки тому
батько
коміт
7321b5b914

+ 1 - 0
tutorials/scripting/gdnative/files/cpp_example/SConstruct

@@ -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'])