[llvm] r220058 - We also need to catch OSError here.
Rafael EspĂndola
rafael.espindola at gmail.com
Fri Oct 17 11:03:32 PDT 2014
Thanks!
On 17 October 2014 13:46, Peter Collingbourne <peter at pcc.me.uk> wrote:
> 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])
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list