scons: bump c++ standard to 14 to match meson
authorEric Engestrom <eric@engestrom.ch>
Tue, 21 Jan 2020 23:52:47 +0000 (23:52 +0000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 25 Aug 2020 14:34:20 +0000 (14:34 +0000)
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>

scons/gallium.py

index 40903cd0cc9bade9d846f212b94297d680d05211..5fd979b1d1243f883660c9c659a06f37639855cb 100755 (executable)
@@ -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',