[llvm] r220048 - Don't crash if find_executable return None.
Rafael Espindola
rafael.espindola at gmail.com
Fri Oct 17 09:07:43 PDT 2014
Author: rafael
Date: Fri Oct 17 11:07:43 2014
New Revision: 220048
URL: http://llvm.org/viewvc/llvm-project?rev=220048&view=rev
Log:
Don't crash if find_executable return None.
This was crashing when trying to run the tests on Windows.
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=220048&r1=220047&r2=220048&view=diff
==============================================================================
--- llvm/trunk/test/Bindings/Go/lit.local.cfg (original)
+++ llvm/trunk/test/Bindings/Go/lit.local.cfg Fri Oct 17 11:07:43 2014
@@ -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])
More information about the llvm-commits
mailing list