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:
Victor Stinner 2022-04-20 13:19:05 +02:00 committed by GitHub
parent 4420faf273
commit aaeea78b0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1,2 @@
Python is now built with ``-std=c11`` compiler option, rather than
``-std=c99``. Patch by Victor Stinner.

2
configure generated vendored
View File

@ -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"

View File

@ -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],