mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
self.path may be empty or otherwise miss the normal system directories,
so try PATH next. Assume it is sane enough to cover the usual system bash locations too, but the old list is not good enough for NetBSD. llvm-svn: 193471
This commit is contained in:
parent
212cd2ef39
commit
c928f5557a
@ -73,11 +73,7 @@ class LitConfig:
|
||||
|
||||
self.bashPath = lit.util.which('bash', os.pathsep.join(self.path))
|
||||
if self.bashPath is None:
|
||||
# Check some known paths.
|
||||
for path in ('/bin/bash', '/usr/bin/bash', '/usr/local/bin/bash'):
|
||||
if os.path.exists(path):
|
||||
self.bashPath = path
|
||||
break
|
||||
self.bashPath = lit.util.which('bash')
|
||||
|
||||
if self.bashPath is None:
|
||||
self.warning("Unable to find 'bash'.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user