summaryrefslogtreecommitdiff
path: root/test/libcxxabi
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2015-03-17 18:58:14 +0000
committerEric Fiselier <eric@efcs.ca>2015-03-17 18:58:14 +0000
commit9ac9cddabcb1f0c067d39378775fd1444165239b (patch)
tree90e9833a89ac8889ebf1e03896d86399f8eaa80a /test/libcxxabi
parent7c79ceb7296086ff84d442c74e846075d0d906eb (diff)
add option to tell LIT where to find the libc++ library when built out of tree
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@232518 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/libcxxabi')
-rw-r--r--test/libcxxabi/test/config.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/libcxxabi/test/config.py b/test/libcxxabi/test/config.py
index d08aff8..a8c993f 100644
--- a/test/libcxxabi/test/config.py
+++ b/test/libcxxabi/test/config.py
@@ -76,5 +76,10 @@ class Configuration(LibcxxConfiguration):
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
+ library_paths = []
+ if self.libcxxabi_lib_root:
+ library_paths += [self.libcxxabi_lib_root]
+ if self.cxx_library_root:
+ library_paths += [self.cxx_library_root]
+ if sys.platform == 'darwin' and library_paths:
+ self.env['DYLD_LIBRARY_PATH'] = ':'.join(library_paths)