scons: bump c++ standard to 14 to match meson

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1845
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3500>
This commit is contained in:
Eric Engestrom 2020-01-21 23:52:47 +00:00 committed by Marge Bot
parent 0fd33207b7
commit bc6d6fd0ed

View File

@ -404,6 +404,7 @@ def generate(env):
]
if gcc_compat:
cppdefines += [('__MSVCRT_VERSION__', '0x0700')]
cppdefines += ['_USE_MATH_DEFINES']
if msvc:
cppdefines += [
'VC_EXTRALEAN',
@ -496,6 +497,7 @@ def generate(env):
cflags += ['-std=gnu11']
else:
cflags += ['-std=gnu99']
cxxflags += ['-std=c++14']
if icc:
cflags += [
'-std=gnu99',