mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-17 16:31:02 +00:00
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: 323041
This commit is contained in:
parent
1dbf609634
commit
e6de5a100d
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user