summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorEric Engestrom <eric@engestrom.ch>2020-01-21 23:52:47 +0000
committerMarge Bot <eric+marge@anholt.net>2020-08-25 14:34:20 +0000
commitbc6d6fd0ed57c667377d9aae5cc4a7b4d56b1b6f (patch)
tree72145012bafba99eb9d9becdfd6c70048a2a58aa /scons
parent0fd33207b7793772e60f6ad2c25a0fa97babfd54 (diff)
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>
Diffstat (limited to 'scons')
-rwxr-xr-xscons/gallium.py2
1 files changed, 2 insertions, 0 deletions
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',