Skip to content

Commit

Permalink
gh-91731: Build Python with -std=c11 (#91733)
Browse files Browse the repository at this point in the history
Python is now built with "-std=c11" compiler option, rather than
"-std=c99".
  • Loading branch information
vstinner committed Apr 20, 2022
1 parent 4420faf commit aaeea78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Python is now built with ``-std=c11`` compiler option, rather than
``-std=c99``. Patch by Victor Stinner.
2 changes: 1 addition & 1 deletion configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit aaeea78

Please sign in to comment.