From: Peter Collingbourne Date: Fri, 17 Oct 2014 17:46:46 +0000 (+0000) Subject: We also need to catch OSError here. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=e7b03ee85c6a5b36588cedbbee8d83ece6ab78b6 We also need to catch OSError here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220058 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Bindings/Go/lit.local.cfg b/test/Bindings/Go/lit.local.cfg index 8158dd49e7f..c41ff16b287 100644 --- 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' - 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])