Skip to content

Commit

Permalink
Add missing C++17 flag for Windows build in GDNative SConstruct (#4709)
Browse files Browse the repository at this point in the history
This matches macOS and Linux.
  • Loading branch information
Calinou committed Mar 3, 2021
1 parent b872229 commit 7321b5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tutorials/scripting/gdnative/files/cpp_example/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit 7321b5b

Please sign in to comment.