From 60d7f605cbe5540f3112bc440e76686c47ca2304 Mon Sep 17 00:00:00 2001 From: Headline Date: Thu, 30 Jan 2025 19:46:09 -0800 Subject: [PATCH] Add -Wno-deprecated-declarations (#2254) --- AMBuildScript | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AMBuildScript b/AMBuildScript index 43192a00fb..f3c25f31c3 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -291,6 +291,10 @@ class SMConfig(object): raise Exception('--enable-asan only supported when using Clang') self.configure_asan(cxx) + # AMTL uses std::bind + if (have_gcc and cxx.version >= 'gcc-10.0') or (have_clang and cxx.version >= 'clang-12.0'): + cxx.cxxflags += ['-Wno-deprecated-declarations'] + # Work around SDK warnings. if cxx.version >= 'clang-10.0' or cxx.version >= 'apple-clang-12.0': cxx.cflags += [