Merge pull request #371 from alliedmodders/clang-3.6

Fix build on Clang 3.6.
This commit is contained in:
Nicholas Hastings 2015-08-14 21:56:35 -04:00
commit 31cd5c7863

View File

@ -181,6 +181,8 @@ class SMConfig(object):
if have_clang or (have_gcc and cxx.version >= '4'): if have_clang or (have_gcc and cxx.version >= '4'):
cxx.cflags += ['-fvisibility=hidden'] cxx.cflags += ['-fvisibility=hidden']
cxx.cxxflags += ['-fvisibility-inlines-hidden'] cxx.cxxflags += ['-fvisibility-inlines-hidden']
if have_clang and cxx.version >= '3.6':
cxx.cxxflags += ['-Wno-inconsistent-missing-override']
if have_clang or (have_gcc and cxx.version >= '4.6'): if have_clang or (have_gcc and cxx.version >= '4.6'):
cxx.cflags += ['-Wno-narrowing'] cxx.cflags += ['-Wno-narrowing']
if (have_gcc and cxx.version >= '4.7') or (have_clang and cxx.version >= '3'): if (have_gcc and cxx.version >= '4.7') or (have_clang and cxx.version >= '3'):