Commit 4f197449 authored by Stefan Krah's avatar Stefan Krah

Issue #17361: Use cc from sysconfig for testing flags.

parent 2cb16aa3
...@@ -2013,8 +2013,8 @@ class PyBuildExt(build_ext): ...@@ -2013,8 +2013,8 @@ class PyBuildExt(build_ext):
# Increase warning level for gcc: # Increase warning level for gcc:
if 'gcc' in cc: if 'gcc' in cc:
cmd = ("echo '' | gcc -Wextra -Wno-missing-field-initializers -E - " cmd = ("echo '' | %s -Wextra -Wno-missing-field-initializers -E - "
"> /dev/null 2>&1") "> /dev/null 2>&1" % cc)
ret = os.system(cmd) ret = os.system(cmd)
if ret >> 8 == 0: if ret >> 8 == 0:
extra_compile_args.extend(['-Wextra', extra_compile_args.extend(['-Wextra',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment