mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-24 18:54:10 +08:00
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:
parent
0fd33207b7
commit
bc6d6fd0ed
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user