diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-10-17 16:07:43 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-10-17 16:07:43 +0000 |
| commit | 44c661b61157d4dd234071a44d8d2b5d2dc806ff (patch) | |
| tree | ac605277b2ccb02219582fcecfde306ad47fd6ae /llvm | |
| parent | 2d1128acb2844ee1388f9fbe7f3f5d8a8559dfcb (diff) | |
| download | bcm5719-llvm-44c661b61157d4dd234071a44d8d2b5d2dc806ff.tar.gz bcm5719-llvm-44c661b61157d4dd234071a44d8d2b5d2dc806ff.zip | |
Don't crash if find_executable return None.
This was crashing when trying to run the tests on Windows.
llvm-svn: 220048
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/test/Bindings/Go/lit.local.cfg | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Bindings/Go/lit.local.cfg b/llvm/test/Bindings/Go/lit.local.cfg index 0d894fded47..8158dd49e7f 100644 --- a/llvm/test/Bindings/Go/lit.local.cfg +++ b/llvm/test/Bindings/Go/lit.local.cfg @@ -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]) |

