mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
We also need to catch OSError here.
llvm-svn: 220058
This commit is contained in:
parent
0b41e1680b
commit
30dcbffe24
@ -36,13 +36,13 @@ def fixup_compiler_path(compiler):
|
||||
try:
|
||||
if path.endswith('/cc') and os.readlink(path) == 'clang':
|
||||
args[0] = path[:len(path)-2] + 'clang'
|
||||
except AttributeError:
|
||||
except (AttributeError, OSError):
|
||||
pass
|
||||
|
||||
try:
|
||||
if path.endswith('/c++') and os.readlink(path) == 'clang++':
|
||||
args[0] = path[:len(path)-3] + 'clang++'
|
||||
except AttributeError:
|
||||
except (AttributeError, OSError):
|
||||
pass
|
||||
|
||||
return ' '.join([pipes.quote(arg) for arg in args])
|
||||
|
Loading…
Reference in New Issue
Block a user