From: Eric Engestrom Date: Tue, 21 Jan 2020 23:52:47 +0000 (+0000) Subject: scons: bump c++ standard to 14 to match meson X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc6d6fd0ed57c667377d9aae5cc4a7b4d56b1b6f;p=mesa.git scons: bump c++ standard to 14 to match meson Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1845 Signed-off-by: Eric Engestrom Part-of: --- diff --git a/scons/gallium.py b/scons/gallium.py index 40903cd0cc9..5fd979b1d12 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -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',