From: Ned Deily Date: Sat, 19 Apr 2014 20:25:29 +0000 (-0700) Subject: Issue #21311: Avoid exception in _osx_support with non-standard compiler X-Git-Tag: v3.4.1rc1~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f31b4782084abef023d9ade3990385fb905a092f;p=python Issue #21311: Avoid exception in _osx_support with non-standard compiler configurations. Patch by John Szakmeister. --- 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') diff --git a/Misc/ACKS b/Misc/ACKS index 40f7cbefb2..65d1adbe05 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -1281,6 +1281,7 @@ Andrew Svetlov Paul Swartz Thenault Sylvain Péter Szabó +John Szakmeister Amir Szekely Arfrever Frehtes Taifersar Arahesis Hideaki Takahashi diff --git a/Misc/NEWS b/Misc/NEWS index 3e121afc2b..1b5ac6c497 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -165,6 +165,9 @@ Library - asyncio: Add gi_{frame,running,code} properties to CoroWrapper (upstream issue #163). +- Issue #21311: Avoid exception in _osx_support with non-standard compiler + configurations. Patch by John Szakmeister. + Extension Modules -----------------