Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f31b478

Browse files
committed
Issue #21311: Avoid exception in _osx_support with non-standard compiler
configurations. Patch by John Szakmeister.
1 parent 3d050dd commit f31b478

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

Lib/_osx_support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def _find_appropriate_compiler(_config_vars):
182182
# Compiler is GCC, check if it is LLVM-GCC
183183
data = _read_output("'%s' --version"
184184
% (cc.replace("'", "'\"'\"'"),))
185-
if 'llvm-gcc' in data:
185+
if data and 'llvm-gcc' in data:
186186
# Found LLVM-GCC, fall back to clang
187187
cc = _find_build_tool('clang')
188188

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,6 +1281,7 @@ Andrew Svetlov
12811281
Paul Swartz
12821282
Thenault Sylvain
12831283
Péter Szabó
1284+
John Szakmeister
12841285
Amir Szekely
12851286
Arfrever Frehtes Taifersar Arahesis
12861287
Hideaki Takahashi

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ Library
165165
- asyncio: Add gi_{frame,running,code} properties to CoroWrapper
166166
(upstream issue #163).
167167

168+
- Issue #21311: Avoid exception in _osx_support with non-standard compiler
169+
configurations. Patch by John Szakmeister.
170+
168171
Extension Modules
169172
-----------------
170173

0 commit comments

Comments
 (0)