summaryrefslogtreecommitdiffstats
path: root/Lib/_osx_support.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2014-04-19 20:24:03 (GMT)
committerNed Deily <nad@acm.org>2014-04-19 20:24:03 (GMT)
commit84889012820d5bfa02d77898a433e214b22b187a (patch)
tree8b36ad0a8eb93ff8d6d48cb6647c0935665fc487 /Lib/_osx_support.py
parentf27ec3e5515115080b270c5530929d365791c2c1 (diff)
downloadcpython-84889012820d5bfa02d77898a433e214b22b187a.zip
cpython-84889012820d5bfa02d77898a433e214b22b187a.tar.gz
cpython-84889012820d5bfa02d77898a433e214b22b187a.tar.bz2
Issue #21311: Avoid exception in _osx_support with non-standard compiler
configurations. Patch by John Szakmeister.
Diffstat (limited to 'Lib/_osx_support.py')
-rw-r--r--Lib/_osx_support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_osx_support.py b/Lib/_osx_support.py
index 5a0b71e..d02b885 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')