mirror of
https://github.com/python/cpython.git
synced 2024-11-30 13:24:13 +08:00
Issue #17361: Use cc from sysconfig for testing flags.
This commit is contained in:
parent
2cb16aa3cb
commit
4f1974496a
4
setup.py
4
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',
|
||||
|
Loading…
Reference in New Issue
Block a user