macOS build fix.

This commit is contained in:
David Anderson 2021-07-11 22:14:16 -07:00
parent 97b03ea567
commit 08494d0d66

View File

@ -222,16 +222,16 @@ class AMXXConfig(object):
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'):
cxx.cxxflags += [ cxx.cxxflags += ['-Wno-delete-non-virtual-dtor']
'-Wno-delete-non-virtual-dtor',
'-Wno-varargs',
]
if have_gcc and cxx.version >= '4.8': if have_gcc and cxx.version >= '4.8':
cxx.cflags += ['-Wno-unused-result', '-Wno-error=sign-compare'] cxx.cflags += ['-Wno-unused-result', '-Wno-error=sign-compare']
if have_clang: if have_clang:
cxx.cxxflags += ['-Wno-implicit-exception-spec-mismatch'] cxx.cxxflags += ['-Wno-implicit-exception-spec-mismatch']
if cxx.version >= 'apple-clang-10.0': if cxx.version >= 'apple-clang-10.0':
cxx.cxxflags += ['-Wno-inconsistent-missing-override'] cxx.cxxflags += [
'-Wno-inconsistent-missing-override',
'-Wno-varargs',
]
if cxx.version >= 'apple-clang-5.1' or cxx.version >= 'clang-3.4': if cxx.version >= 'apple-clang-5.1' or cxx.version >= 'clang-3.4':
cxx.cxxflags += ['-Wno-deprecated-register'] cxx.cxxflags += ['-Wno-deprecated-register']
else: else: