[llvm] r220058 - We also need to catch OSError here.
Peter Collingbourne
peter at pcc.me.uk
Fri Oct 17 10:46:47 PDT 2014
Author: pcc
Date: Fri Oct 17 12:46:46 2014
New Revision: 220058
URL: http://llvm.org/viewvc/llvm-project?rev=220058&view=rev
Log:
We also need to catch OSError here.
Modified:
llvm/trunk/test/Bindings/Go/lit.local.cfg
Modified: llvm/trunk/test/Bindings/Go/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bindings/Go/lit.local.cfg?rev=220058&r1=220057&r2=220058&view=diff
==============================================================================
--- llvm/trunk/test/Bindings/Go/lit.local.cfg (original)
+++ llvm/trunk/test/Bindings/Go/lit.local.cfg Fri Oct 17 12:46:46 2014
@@ -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])
More information about the llvm-commits
mailing list