summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2015-02-21 04:30:36 +0000
committerEric Fiselier <eric@efcs.ca>2015-02-21 04:30:36 +0000
commit75a7bf6a705cee19fbafa0f48b95c822c3543d48 (patch)
tree39c217a82acc09448e39227907aa475eb9806ea9 /test
parentae158eae0c32f56e89d66e1760afae0e3c4a14df (diff)
Add temporary workaround for missing symbol __cxa_throw_bad_new_array_length on OS X.
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@230125 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/libcxxabi/test/config.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/libcxxabi/test/config.py b/test/libcxxabi/test/config.py
index a761c37..d08aff8 100644
--- a/test/libcxxabi/test/config.py
+++ b/test/libcxxabi/test/config.py
@@ -66,6 +66,15 @@ class Configuration(LibcxxConfiguration):
self.cxx.link_flags += ['-L' + self.libcxxabi_lib_root,
'-Wl,-rpath,' + self.libcxxabi_lib_root]
+ # 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.
+ # However __cxa_throw_bad_new_array_length doesn't get exported into libc++
+ # yet so we still need to explicitly link libc++abi.
+ # See PR22654.
+ def configure_link_flags_abi_library(self):
+ self.cxx.link_flags += ['-lc++abi']
+
def configure_env(self):
if sys.platform == 'darwin' and self.libcxxabi_lib_root:
self.env['DYLD_LIBRARY_PATH'] = self.libcxxabi_lib_root