From fd8bd75f4e69928a970b93960025fa22485eb9ec Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Wed, 14 Oct 2015 19:21:38 +0000 Subject: Fix LIBCXXABI_HAS_NO_THREADS configuration. git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@250316 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/libcxxabi/test/config.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'test/libcxxabi') diff --git a/test/libcxxabi/test/config.py b/test/libcxxabi/test/config.py index 50597ae..43ad88b 100644 --- a/test/libcxxabi/test/config.py +++ b/test/libcxxabi/test/config.py @@ -28,8 +28,10 @@ class Configuration(LibcxxConfiguration): def configure_compile_flags(self): self.cxx.compile_flags += ['-DLIBCXXABI_NO_TIMER'] self.cxx.compile_flags += ['-funwind-tables'] - super(Configuration, self).configure_compile_flags() - + if not self.get_lit_bool('enable_threads', True): + self.cxx.compile_flags += ['-DLIBCXXABI_HAS_NO_THREADS=1'] + super(Configuration, self).configure_compile_flags() + def configure_compile_flags_header_includes(self): self.configure_config_site_header() cxx_headers = self.get_lit_conf( @@ -54,12 +56,6 @@ class Configuration(LibcxxConfiguration): def configure_compile_flags_rtti(self): pass - def configure_compile_flags_no_threads(self): - self.cxx.compile_flags += ['-DLIBCXXABI_HAS_NO_THREADS=1'] - - def configure_compile_flags_no_monotonic_clock(self): - pass - # TODO(ericwf): Remove this. This is a hack for OS X. # libc++ *should* export all of the symbols found in libc++abi on OS X. # For this reason LibcxxConfiguration will not link libc++abi in OS X. -- cgit v1.2.3