summaryrefslogtreecommitdiff
path: root/test/lit.cfg
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-26 07:36:09 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-26 07:36:09 +0000
commit9e10cc7a4c1e5b620bf4d5c90d4e452b3ae04c81 (patch)
tree9e1b7cfb2f15b31fea32b5318b32eba285c74ac8 /test/lit.cfg
parentc22dd4d7318720db5c3c34aebe4aac0b5af6cc94 (diff)
downloadclang-9e10cc7a4c1e5b620bf4d5c90d4e452b3ae04c81.tar.gz
Add the lib path to LD_LIBRARY_PATH, so finding .so works (more) portably.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.cfg')
-rw-r--r--test/lit.cfg7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg
index ce13f1065c..60d8df0577 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -39,6 +39,13 @@ if clang_obj_root is not None:
path = os.path.pathsep.join((llvm_tools_dir, config.environment['PATH']))
config.environment['PATH'] = path
+ llvm_libs_dir = getattr(config, 'llvm_libs_dir', None)
+ if not llvm_libs_dir:
+ lit.fatal('No LLVM libs dir set!')
+ path = os.path.pathsep.join((llvm_libs_dir,
+ config.environment.get('LD_LIBRARY_PATH','')))
+ config.environment['LD_LIBRARY_PATH'] = path
+
###
# Check that the object root is known.