|
@@ -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:
|