[polly] r323041 - Assume the shared library path variable is LD_LIBRARY_PATH on systems

Dimitry Andric via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 20 06:35:05 PST 2018


Author: dim
Date: Sat Jan 20 06:35:05 2018
New Revision: 323041

URL: http://llvm.org/viewvc/llvm-project?rev=323041&view=rev
Log:
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.

Modified:
    polly/trunk/test/Unit/lit.cfg

Modified: polly/trunk/test/Unit/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/Unit/lit.cfg?rev=323041&r1=323040&r2=323041&view=diff
==============================================================================
--- polly/trunk/test/Unit/lit.cfg (original)
+++ polly/trunk/test/Unit/lit.cfg Sat Jan 20 06:35:05 2018
@@ -37,13 +37,12 @@ for symbolizer in ['ASAN_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,




More information about the llvm-commits mailing list