Skip to content

Commit 60d7f60

Browse files
authored
Add -Wno-deprecated-declarations (#2254)
1 parent 8fc2f39 commit 60d7f60

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

AMBuildScript

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,10 @@ class SMConfig(object):
291291
raise Exception('--enable-asan only supported when using Clang')
292292
self.configure_asan(cxx)
293293

294+
# AMTL uses std::bind
295+
if (have_gcc and cxx.version >= 'gcc-10.0') or (have_clang and cxx.version >= 'clang-12.0'):
296+
cxx.cxxflags += ['-Wno-deprecated-declarations']
297+
294298
# Work around SDK warnings.
295299
if cxx.version >= 'clang-10.0' or cxx.version >= 'apple-clang-12.0':
296300
cxx.cflags += [

0 commit comments

Comments
 (0)