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
This commit is contained in:
parent
f086a5ab03
commit
1dbf609634
|
@ -19,13 +19,12 @@ config.test_exec_root = config.test_source_root
|
||||||
# ;-separated list of subdirectories).
|
# ;-separated list of subdirectories).
|
||||||
config.test_format = lit.formats.GoogleTest('.', 'Tests')
|
config.test_format = lit.formats.GoogleTest('.', 'Tests')
|
||||||
|
|
||||||
shlibpath_var = ''
|
if platform.system() == 'Darwin':
|
||||||
if platform.system() == 'Linux':
|
|
||||||
shlibpath_var = 'LD_LIBRARY_PATH'
|
|
||||||
elif platform.system() == 'Darwin':
|
|
||||||
shlibpath_var = 'DYLD_LIBRARY_PATH'
|
shlibpath_var = 'DYLD_LIBRARY_PATH'
|
||||||
elif platform.system() == 'Windows':
|
elif platform.system() == 'Windows':
|
||||||
shlibpath_var = 'PATH'
|
shlibpath_var = 'PATH'
|
||||||
|
else:
|
||||||
|
shlibpath_var = 'LD_LIBRARY_PATH'
|
||||||
|
|
||||||
# Point the dynamic loader at dynamic libraries in 'lib'.
|
# Point the dynamic loader at dynamic libraries in 'lib'.
|
||||||
shlibpath = os.path.pathsep.join((config.shlibdir, config.llvm_libs_dir,
|
shlibpath = os.path.pathsep.join((config.shlibdir, config.llvm_libs_dir,
|
||||||
|
|
Loading…
Reference in New Issue