From 415b6ea174816a35bcfb0424c3fd3bb3f284f39b Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Tue, 1 Jul 2014 16:13:22 -0500 Subject: [PATCH] Use -Wno-deprecated-register on clang 3.4+ or Apple clang 5.1+ only (bug 6164). --- AMBuildScript | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/AMBuildScript b/AMBuildScript index 37208fbf..892e849a 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -188,10 +188,11 @@ class SMConfig(object): if have_gcc and cxx.version >= '4.8': cxx.cflags += ['-Wno-unused-result'] if have_clang: - cxx.cxxflags += [ - '-Wno-implicit-exception-spec-mismatch', - '-Wno-deprecated-register', - ] + cxx.cxxflags += ['-Wno-implicit-exception-spec-mismatch'] + if (builder.target_platform == 'mac' and cxx.version >= '5.1') or cxx.version >= '3.4': + cxx.cxxflags += ['-Wno-deprecated-register'] + else: + cxx.cxxflags += ['-Wno-deprecated'] cxx.linkflags += ['-m32'] cxx.cxxflags += [