diff options
author | Victor Stinner <vstinner@python.org> | 2022-04-20 11:19:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-20 11:19:05 (GMT) |
commit | aaeea78b0f8f4c8dfab5cd4eb6fb4c5fe1ee21e2 (patch) | |
tree | 5e848883a588436415b5f08c8dc71da4592a77b3 | |
parent | 4420faf273e9e2d03226a9375e1e04a336230c84 (diff) | |
download | cpython-aaeea78b0f8f4c8dfab5cd4eb6fb4c5fe1ee21e2.zip cpython-aaeea78b0f8f4c8dfab5cd4eb6fb4c5fe1ee21e2.tar.gz cpython-aaeea78b0f8f4c8dfab5cd4eb6fb4c5fe1ee21e2.tar.bz2 |
gh-91731: Build Python with -std=c11 (#91733)
Python is now built with "-std=c11" compiler option, rather than
"-std=c99".
-rw-r--r-- | Misc/NEWS.d/next/Build/2022-04-20-11-14-51.gh-issue-91731.zRoPcJ.rst | 2 | ||||
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | configure.ac | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/Misc/NEWS.d/next/Build/2022-04-20-11-14-51.gh-issue-91731.zRoPcJ.rst b/Misc/NEWS.d/next/Build/2022-04-20-11-14-51.gh-issue-91731.zRoPcJ.rst new file mode 100644 index 0000000..92a1f52 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2022-04-20-11-14-51.gh-issue-91731.zRoPcJ.rst @@ -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" diff --git a/configure.ac b/configure.ac index 276718a..9b60b98 100644 --- a/configure.ac +++ b/configure.ac @@ -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], |