forked from OSchip/llvm-project
parent
dfa176e813
commit
6c7f5884d5
|
@ -60,7 +60,7 @@ class LLDBTest(TestFormat):
|
|||
# The macOS system integrity protection (SIP) doesn't allow injecting
|
||||
# libraries into system binaries, but this can be worked around by
|
||||
# copying the binary into a different location.
|
||||
if test.config.environment['DYLD_INSERT_LIBRARIES'] and \
|
||||
if 'DYLD_INSERT_LIBRARIES' in test.config.environment and \
|
||||
sys.executable.startswith('/System/'):
|
||||
builddir = getBuildDir(cmd)
|
||||
assert(builddir)
|
||||
|
|
Loading…
Reference in New Issue