summaryrefslogtreecommitdiffstats
path: root/lldb/lit/Suite/lit.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/lit/Suite/lit.cfg')
-rw-r--r--lldb/lit/Suite/lit.cfg15
1 files changed, 6 insertions, 9 deletions
diff --git a/lldb/lit/Suite/lit.cfg b/lldb/lit/Suite/lit.cfg
index aec9690662f..9504f4ca1d8 100644
--- a/lldb/lit/Suite/lit.cfg
+++ b/lldb/lit/Suite/lit.cfg
@@ -39,21 +39,18 @@ def find_shlibpath_var():
elif platform.system() == 'Windows':
yield 'PATH'
-if not 'DYLD_INSERT_LIBRARIES' in config.environment:
- # Shared library build of LLVM may require LD_LIBRARY_PATH or equivalent.
- # This clashes with DYLD_INSERT_LIBRARIES which is needed on Darwin.
+# Shared library build of LLVM may require LD_LIBRARY_PATH or equivalent.
+if config.shared_libs:
for shlibpath_var in find_shlibpath_var():
# In stand-alone build llvm_shlib_dir specifies LLDB's lib directory while
# llvm_libs_dir specifies LLVM's lib directory.
shlibpath = os.path.pathsep.join(
- (config.llvm_shlib_dir,
- config.llvm_libs_dir,
- config.environment.get(shlibpath_var, '')))
+ (config.llvm_shlib_dir, config.llvm_libs_dir,
+ config.environment.get(shlibpath_var, '')))
config.environment[shlibpath_var] = shlibpath
- break
else:
- lit_config.warning("unable to inject shared library path on '{}'"
- .format(platform.system()))
+ lit_config.warning("unable to inject shared library path on '{}'".format(
+ platform.system()))
# Build dotest command.
dotest_cmd = [config.dotest_path]
OpenPOWER on IntegriCloud