summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2018-01-20 14:34:33 +0000
committerDimitry Andric <dimitry@andric.com>2018-01-20 14:34:33 +0000
commit1dbf609634ae38a161103cf0396372c01a0d7905 (patch)
tree0a0cc9f4f6ceb0b7b4a3d4e09da8c28d7e95c3fa
parentf086a5ab0390613b8bf1044680a82cf6f5adf131 (diff)
downloadbcm5719-llvm-1dbf609634ae38a161103cf0396372c01a0d7905.tar.gz
bcm5719-llvm-1dbf609634ae38a161103cf0396372c01a0d7905.zip
Assume the shared library path variable is LD_LIBRARY_PATH on systems
except Darwin and Windows. This prevents inserting an environment variable with an empty name (which is illegal and leads to a Python exception) on any of the BSDs. llvm-svn: 323040
-rw-r--r--clang-tools-extra/test/Unit/lit.cfg7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang-tools-extra/test/Unit/lit.cfg b/clang-tools-extra/test/Unit/lit.cfg
index fc63afdbe86..b40e1cae29e 100644
--- a/clang-tools-extra/test/Unit/lit.cfg
+++ b/clang-tools-extra/test/Unit/lit.cfg
@@ -19,13 +19,12 @@ config.test_exec_root = config.test_source_root
# ;-separated list of subdirectories).
config.test_format = lit.formats.GoogleTest('.', 'Tests')
-shlibpath_var = ''
-if platform.system() == 'Linux':
- shlibpath_var = 'LD_LIBRARY_PATH'
-elif platform.system() == 'Darwin':
+if platform.system() == 'Darwin':
shlibpath_var = 'DYLD_LIBRARY_PATH'
elif platform.system() == 'Windows':
shlibpath_var = 'PATH'
+else:
+ shlibpath_var = 'LD_LIBRARY_PATH'
# Point the dynamic loader at dynamic libraries in 'lib'.
shlibpath = os.path.pathsep.join((config.shlibdir, config.llvm_libs_dir,
OpenPOWER on IntegriCloud