From 735417c3c0ecaef47b4a299ddc165baa8d037dc2 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 20 Jan 2018 14:35:05 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@323041 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Unit/lit.cfg | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/Unit/lit.cfg b/test/Unit/lit.cfg index 315b70e7..eca3aaeb 100644 --- a/test/Unit/lit.cfg +++ b/test/Unit/lit.cfg @@ -37,13 +37,12 @@ for symbolizer in ['ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH']: if symbolizer in os.environ: config.environment[symbolizer] = os.environ[symbolizer] -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.llvm_libs_dir, -- 2.11.4.GIT