mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-01-19 08:52:34 +01:00
Switch to C++17 (#128)
This commit is contained in:
parent
fc17601a96
commit
437de2b6fe
@ -156,10 +156,7 @@ class MMSConfig(object):
|
|||||||
'-fPIC',
|
'-fPIC',
|
||||||
]
|
]
|
||||||
|
|
||||||
if cxx.version == 'apple-clang-6.0' or cxx.version == 'clang-3.4':
|
cxx.cxxflags += ['-std=c++17']
|
||||||
cxx.cxxflags += ['-std=c++1y']
|
|
||||||
else:
|
|
||||||
cxx.cxxflags += ['-std=c++14']
|
|
||||||
if (cxx.version >= 'gcc-4.0') or cxx.family == 'clang':
|
if (cxx.version >= 'gcc-4.0') or cxx.family == 'clang':
|
||||||
cxx.cflags += ['-fvisibility=hidden']
|
cxx.cflags += ['-fvisibility=hidden']
|
||||||
cxx.cxxflags += ['-fvisibility-inlines-hidden']
|
cxx.cxxflags += ['-fvisibility-inlines-hidden']
|
||||||
@ -169,6 +166,7 @@ class MMSConfig(object):
|
|||||||
'-fno-threadsafe-statics',
|
'-fno-threadsafe-statics',
|
||||||
'-Wno-non-virtual-dtor',
|
'-Wno-non-virtual-dtor',
|
||||||
'-Wno-overloaded-virtual',
|
'-Wno-overloaded-virtual',
|
||||||
|
'-Wno-register',
|
||||||
]
|
]
|
||||||
if (cxx.version >= 'gcc-4.7' or cxx.family == 'clang'):
|
if (cxx.version >= 'gcc-4.7' or cxx.family == 'clang'):
|
||||||
cxx.cxxflags += ['-Wno-delete-non-virtual-dtor']
|
cxx.cxxflags += ['-Wno-delete-non-virtual-dtor']
|
||||||
@ -206,6 +204,7 @@ class MMSConfig(object):
|
|||||||
cxx.cflags += [
|
cxx.cflags += [
|
||||||
'/W3',
|
'/W3',
|
||||||
'/Zi',
|
'/Zi',
|
||||||
|
'/std:c++17',
|
||||||
]
|
]
|
||||||
cxx.cxxflags += ['/TP']
|
cxx.cxxflags += ['/TP']
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user