Browse Source

Bump to c++17

lawnjelly 2 months ago
parent
commit
e0dc103bd1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      SConstruct

+ 2 - 2
SConstruct

@@ -477,11 +477,11 @@ if selected_platform in platform_list:
         # both GCC and Clang. This mirrors GCC and Clang's current default
         # both GCC and Clang. This mirrors GCC and Clang's current default
         # compile flags if no -std is specified.
         # compile flags if no -std is specified.
         env.Prepend(CFLAGS=["-std=gnu11"])
         env.Prepend(CFLAGS=["-std=gnu11"])
-        env.Prepend(CXXFLAGS=["-std=gnu++14"])
+        env.Prepend(CXXFLAGS=["-std=gnu++17"])
     else:
     else:
         # MSVC doesn't have clear C standard support, /std only covers C++.
         # MSVC doesn't have clear C standard support, /std only covers C++.
         # We apply it to CCFLAGS (both C and C++ code) in case it impacts C features.
         # We apply it to CCFLAGS (both C and C++ code) in case it impacts C features.
-        env.Prepend(CCFLAGS=["/std:c++14"])
+        env.Prepend(CCFLAGS=["/std:c++17"])
 
 
     # Handle renamed options.
     # Handle renamed options.
     if "use_lto" in ARGUMENTS or "use_thinlto" in ARGUMENTS:
     if "use_lto" in ARGUMENTS or "use_thinlto" in ARGUMENTS: