Skip to content

Commit aaeea78

Browse files
authored
gh-91731: Build Python with -std=c11 (#91733)
Python is now built with "-std=c11" compiler option, rather than "-std=c99".
1 parent 4420faf commit aaeea78

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Python is now built with ``-std=c11`` compiler option, rather than
2+
``-std=c99``. Patch by Victor Stinner.

configure

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -1983,7 +1983,7 @@ AC_DEFUN([PY_CHECK_CC_WARNING], [
19831983
# tweak BASECFLAGS based on compiler and platform
19841984
case $GCC in
19851985
yes)
1986-
CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
1986+
CFLAGS_NODIST="$CFLAGS_NODIST -std=c11"
19871987

19881988
PY_CHECK_CC_WARNING([enable], [extra], [if we can add -Wextra])
19891989
AS_VAR_IF([ac_cv_enable_extra_warning], [yes],

0 commit comments

Comments
 (0)