From 4056f901ede026e5ac1b230a41941a157bbb1b21 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Wed, 26 Apr 2017 09:20:34 -0400 Subject: [PATCH] More Clang compiler flag fixups. --- AMBuildScript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AMBuildScript b/AMBuildScript index 8e84de6..6689413 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -172,14 +172,14 @@ class MMSConfig(object): '-Wno-non-virtual-dtor', '-Wno-overloaded-virtual', ] - if (cxx.version >= 'gcc-4.7' or cxx.version >= 'clang-3.0'): + if (cxx.version >= 'gcc-4.7' or cxx.family == 'clang'): cxx.cxxflags += ['-Wno-delete-non-virtual-dtor'] if cxx.family == 'gcc': cxx.cflags += ['-mfpmath=sse'] if cxx.family == 'clang': + cxx.cxxflags += ['-Wno-implicit-exception-spec-mismatch'] if cxx.version >= 'clang-3.6': cxx.cxxflags += ['-Wno-inconsistent-missing-override'] - cxx.cxxflags += ['-Wno-implicit-exception-spec-mismatch'] if cxx.version >= 'apple-clang-5.1' or cxx.version >= 'clang-3.4': cxx.cxxflags += ['-Wno-deprecated-register'] else: