Fix test failure for missing _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS

This is a follow-up change to r331150. The CL moved the macro from individual
file to build file, but the macro is missed in a test config file.

https://reviews.llvm.org/D46385
Patch from Taiju Tsuiki <tzik@chromium.org>!

llvm-svn: 331450
This commit is contained in:
Nico Weber 2018-05-03 12:44:27 +00:00
parent c77ab8ef2f
commit 377d68fd2c
1 changed files with 4 additions and 1 deletions

View File

@ -49,7 +49,10 @@ class Configuration(LibcxxConfiguration):
self.config.available_features.add('libcxxabi-has-system-unwinder')
def configure_compile_flags(self):
self.cxx.compile_flags += ['-DLIBCXXABI_NO_TIMER']
self.cxx.compile_flags += [
'-DLIBCXXABI_NO_TIMER',
'-D_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS',
]
if self.get_lit_bool('enable_exceptions', True):
self.cxx.compile_flags += ['-funwind-tables']
else: