From a51bfdae80b8e96cbbcd933899b798e28dce22bd Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Sun, 23 Aug 2026 20:52:58 +0100 Subject: [PATCH] gh-156244: Update `configure` for RISC-V support (GH-156277) (cherry picked from commit 53d2e14a3081085a12c65cff14de77604da14670) Co-authored-by: Stan Ulbrych Co-authored-by: Emma Smith --- .../Build/2026-08-23-12-10-45.gh-issue-156244.Rv6qXt.rst | 1 + configure | 6 +++++- configure.ac | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Build/2026-08-23-12-10-45.gh-issue-156244.Rv6qXt.rst diff --git a/Misc/NEWS.d/next/Build/2026-08-23-12-10-45.gh-issue-156244.Rv6qXt.rst b/Misc/NEWS.d/next/Build/2026-08-23-12-10-45.gh-issue-156244.Rv6qXt.rst new file mode 100644 index 00000000000000..a286955751c3a6 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2026-08-23-12-10-45.gh-issue-156244.Rv6qXt.rst @@ -0,0 +1 @@ +Update :program:`configure` to reflect that the ``riscv64-unknown-linux-gnu`` target triple is now a :pep:`11` tier 3 supported platform. diff --git a/configure b/configure index 2c0349c8c4c98e..77829161deb619 100755 --- a/configure +++ b/configure @@ -7311,7 +7311,11 @@ case $host/$ac_cv_cc_name in #( PY_SUPPORT_TIER=3 ;; #( powerpc64le-*-linux-gnu/clang) : PY_SUPPORT_TIER=3 ;; #( - s390x-*-linux-gnu/gcc) : + riscv64-*-linux-gnu/gcc) : + PY_SUPPORT_TIER=3 ;; #( + riscv64-*-linux-gnu/clang) : + PY_SUPPORT_TIER=3 ;; #( + s390x-*-linux-gnu/gcc) : PY_SUPPORT_TIER=3 ;; #( x86_64-*-freebsd*/clang) : PY_SUPPORT_TIER=3 ;; #( diff --git a/configure.ac b/configure.ac index 928a7b6d72388f..02def85ed19578 100644 --- a/configure.ac +++ b/configure.ac @@ -1250,6 +1250,8 @@ AS_CASE([$host/$ac_cv_cc_name], [aarch64-pc-windows-msvc/msvc], [PY_SUPPORT_TIER=3], dnl Windows ARM64, MSVC [armv7l-*-linux-gnueabihf/gcc], [PY_SUPPORT_TIER=3], dnl ARMv7 LE with hardware floats, any vendor, glibc, gcc [powerpc64le-*-linux-gnu/clang], [PY_SUPPORT_TIER=3], dnl Linux on PPC64 little endian, glibc, clang + [riscv64-*-linux-gnu/gcc], [PY_SUPPORT_TIER=3], dnl Linux on RISC-V 64bit, glibc, gcc+clang + [riscv64-*-linux-gnu/clang], [PY_SUPPORT_TIER=3], [s390x-*-linux-gnu/gcc], [PY_SUPPORT_TIER=3], dnl Linux on 64bit s390x (big endian), glibc, gcc [x86_64-*-freebsd*/clang], [PY_SUPPORT_TIER=3], dnl FreeBSD on AMD64 [aarch64-apple-ios*-simulator/clang], [PY_SUPPORT_TIER=3], dnl iOS Simulator on arm64