mirror of https://github.com/python/cpython
gh-91731: Build Python with -std=c11 (#91733)
Python is now built with "-std=c11" compiler option, rather than "-std=c99".
This commit is contained in:
parent
4420faf273
commit
aaeea78b0f
|
@ -0,0 +1,2 @@
|
|||
Python is now built with ``-std=c11`` compiler option, rather than
|
||||
``-std=c99``. Patch by Victor Stinner.
|
|
@ -7871,7 +7871,7 @@ UNIVERSAL_ARCH_FLAGS=
|
|||
# tweak BASECFLAGS based on compiler and platform
|
||||
case $GCC in
|
||||
yes)
|
||||
CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
|
||||
CFLAGS_NODIST="$CFLAGS_NODIST -std=c11"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1983,7 +1983,7 @@ AC_DEFUN([PY_CHECK_CC_WARNING], [
|
|||
# tweak BASECFLAGS based on compiler and platform
|
||||
case $GCC in
|
||||
yes)
|
||||
CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
|
||||
CFLAGS_NODIST="$CFLAGS_NODIST -std=c11"
|
||||
|
||||
PY_CHECK_CC_WARNING([enable], [extra], [if we can add -Wextra])
|
||||
AS_VAR_IF([ac_cv_enable_extra_warning], [yes],
|
||||
|
|
Loading…
Reference in New Issue