Fix LIBCXXABI_HAS_NO_THREADS configuration.

llvm-svn: 250316
This commit is contained in:
Eric Fiselier 2015-10-14 19:21:38 +00:00
parent 4fcadaf5e7
commit 3cf3cfc4c5
1 changed files with 4 additions and 8 deletions

View File

@ -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.