Browse Source

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

This matches macOS and Linux.
Hugo Locurcio 4 years ago
parent
commit
7321b5b914
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tutorials/scripting/gdnative/files/cpp_example/SConstruct

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