Skip to content

Commit

Permalink
[lit] Fix the way we check if an environment var is set
Browse files Browse the repository at this point in the history
The old method would throw a KeyError.

llvm-svn: 370138
  • Loading branch information
JDevlieghere committed Aug 28, 2019
1 parent de37c44 commit eb0df9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/lit/Suite/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def find_shlibpath_var():
elif platform.system() == 'Windows':
yield 'PATH'

if not config.environment['DYLD_INSERT_LIBRARIES']:
if 'DYLD_INSERT_LIBRARIES' in os.environ:
# Shared library build of LLVM may require LD_LIBRARY_PATH or equivalent.
# This clashes with DYLD_INSERT_LIBRARIES which is needed on Darwin.
for shlibpath_var in find_shlibpath_var():
Expand Down

0 comments on commit eb0df9b

Please sign in to comment.