projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
We also need to catch OSError here.
[oota-llvm.git]
/
test
/
Bindings
/
Go
/
lit.local.cfg
diff --git
a/test/Bindings/Go/lit.local.cfg
b/test/Bindings/Go/lit.local.cfg
index 8158dd49e7ffe2556db7688554cd0de4f50eb425..c41ff16b287e944a99048731f8d1310ae3f7d525 100644
(file)
--- a/
test/Bindings/Go/lit.local.cfg
+++ b/
test/Bindings/Go/lit.local.cfg
@@
-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'
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++'
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])
pass
return ' '.join([pipes.quote(arg) for arg in args])