Mesa (master): scons: bump c++ standard to 14 to match meson

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Aug 25 14:42:34 UTC 2020


Module: Mesa
Branch: master
Commit: bc6d6fd0ed57c667377d9aae5cc4a7b4d56b1b6f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bc6d6fd0ed57c667377d9aae5cc4a7b4d56b1b6f

Author: Eric Engestrom <eric at engestrom.ch>
Date:   Tue Jan 21 23:52:47 2020 +0000

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

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1845
Signed-off-by: Eric Engestrom <eric at engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3500>

---

 scons/gallium.py | 2 ++
 1 file changed, 2 insertions(+)

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',



More information about the mesa-commit mailing list