forked from OSchip/llvm-project
Don't crash if find_executable return None.
This was crashing when trying to run the tests on Windows. llvm-svn: 220048
This commit is contained in:
parent
2d1128acb2
commit
44c661b611
|
@ -36,14 +36,14 @@ def fixup_compiler_path(compiler):
|
|||
try:
|
||||
if path.endswith('/cc') and os.readlink(path) == 'clang':
|
||||
args[0] = path[:len(path)-2] + 'clang'
|
||||
except OSError:
|
||||
skip
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
try:
|
||||
if path.endswith('/c++') and os.readlink(path) == 'clang++':
|
||||
args[0] = path[:len(path)-3] + 'clang++'
|
||||
except OSError:
|
||||
skip
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
return ' '.join([pipes.quote(arg) for arg in args])
|
||||
|
||||
|
|
Loading…
Reference in New Issue