diff options
author | Ned Deily <nad@acm.org> | 2014-04-19 20:25:29 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2014-04-19 20:25:29 (GMT) |
commit | f31b4782084abef023d9ade3990385fb905a092f (patch) | |
tree | c3fa64881b6f4215fc145fc60ec2a04994238872 | |
parent | 3d050ddf195a4473051f82e47b969c9b196dfa09 (diff) | |
download | cpython-f31b4782084abef023d9ade3990385fb905a092f.zip cpython-f31b4782084abef023d9ade3990385fb905a092f.tar.gz cpython-f31b4782084abef023d9ade3990385fb905a092f.tar.bz2 |
Issue #21311: Avoid exception in _osx_support with non-standard compiler
configurations. Patch by John Szakmeister.
-rw-r--r-- | Lib/_osx_support.py | 2 | ||||
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
3 files changed, 5 insertions, 1 deletions
diff --git a/Lib/_osx_support.py b/Lib/_osx_support.py index 40fc78b..b6eac5f 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') @@ -1281,6 +1281,7 @@ Andrew Svetlov Paul Swartz Thenault Sylvain Péter Szabó +John Szakmeister Amir Szekely Arfrever Frehtes Taifersar Arahesis Hideaki Takahashi @@ -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 ----------------- |