From: Dimitry Andric Date: Sat, 20 Jan 2018 14:34:33 +0000 (+0000) Subject: Assume the shared library path variable is LD_LIBRARY_PATH on systems X-Git-Tag: llvmorg-7.0.0-rc1~14757 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dbf609634ae38a161103cf0396372c01a0d7905;p=platform%2Fupstream%2Fllvm.git 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 --- diff --git a/clang-tools-extra/test/Unit/lit.cfg b/clang-tools-extra/test/Unit/lit.cfg index fc63afd..b40e1ca 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,