diff options
author | Stefan Krah <skrah@bytereef.org> | 2013-03-07 00:12:03 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2013-03-07 00:12:03 (GMT) |
commit | 4f1974496a2c718dfd8f5f5f332d24856dbce4ea (patch) | |
tree | f9d33959d3ffabaa777d6876d0fe81da8a2bcd44 /setup.py | |
parent | 2cb16aa3cb31c2c0620df3c806d10782f84c94fb (diff) | |
download | cpython-4f1974496a2c718dfd8f5f5f332d24856dbce4ea.zip cpython-4f1974496a2c718dfd8f5f5f332d24856dbce4ea.tar.gz cpython-4f1974496a2c718dfd8f5f5f332d24856dbce4ea.tar.bz2 |
Issue #17361: Use cc from sysconfig for testing flags.
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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', |