From f31b4782084abef023d9ade3990385fb905a092f Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Sat, 19 Apr 2014 13:25:29 -0700 Subject: Issue #21311: Avoid exception in _osx_support with non-standard compiler configurations. Patch by John Szakmeister. --- Lib/_osx_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/_osx_support.py') diff --git a/Lib/_osx_support.py b/Lib/_osx_support.py index 40fc78b698..b6eac5f667 100644 --- a/Lib/_osx_support.py +++ b/Lib/_osx_support.py @@ -182,7 +182,7 @@ def _find_appropriate_compiler(_config_vars): # Compiler is GCC, check if it is LLVM-GCC data = _read_output("'%s' --version" % (cc.replace("'", "'\"'\"'"),)) - if 'llvm-gcc' in data: + if data and 'llvm-gcc' in data: # Found LLVM-GCC, fall back to clang cc = _find_build_tool('clang') -- cgit v1.2.1