diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2014-10-17 17:46:46 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2014-10-17 17:46:46 +0000 |
commit | fde87a0cdfda34202384a334d4af56a17c0c8efa (patch) | |
tree | d211bb57e2cc76862d79da865025104bfd02ac58 | |
parent | 328b1193b5df1b747e4e368d727a816e7307d1b0 (diff) | |
download | bcm5719-llvm-fde87a0cdfda34202384a334d4af56a17c0c8efa.tar.gz bcm5719-llvm-fde87a0cdfda34202384a334d4af56a17c0c8efa.zip |
We also need to catch OSError here.
llvm-svn: 220058
-rw-r--r-- | llvm/test/Bindings/Go/lit.local.cfg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Bindings/Go/lit.local.cfg b/llvm/test/Bindings/Go/lit.local.cfg index 8158dd49e7f..c41ff16b287 100644 --- a/llvm/test/Bindings/Go/lit.local.cfg +++ b/llvm/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]) |