summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2013-03-07 00:12:03 (GMT)
committerStefan Krah <skrah@bytereef.org>2013-03-07 00:12:03 (GMT)
commit4f1974496a2c718dfd8f5f5f332d24856dbce4ea (patch)
treef9d33959d3ffabaa777d6876d0fe81da8a2bcd44
parent2cb16aa3cb31c2c0620df3c806d10782f84c94fb (diff)
downloadcpython-4f1974496a2c718dfd8f5f5f332d24856dbce4ea.zip
cpython-4f1974496a2c718dfd8f5f5f332d24856dbce4ea.tar.gz
cpython-4f1974496a2c718dfd8f5f5f332d24856dbce4ea.tar.bz2
Issue #17361: Use cc from sysconfig for testing flags.
-rw-r--r--setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index a70909c..7b7e03e 100644
--- a/setup.py
+++ b/setup.py
@@ -2013,8 +2013,8 @@ class PyBuildExt(build_ext):
# Increase warning level for gcc:
if 'gcc' in cc:
- cmd = ("echo '' | gcc -Wextra -Wno-missing-field-initializers -E - "
- "> /dev/null 2>&1")
+ cmd = ("echo '' | %s -Wextra -Wno-missing-field-initializers -E - "
+ "> /dev/null 2>&1" % cc)
ret = os.system(cmd)
if ret >> 8 == 0:
extra_compile_args.extend(['-Wextra',