gh-156244: Update `configure` for RISC-V support (#156277)

StanFromIreland <[email protected]>
Newsgroups gmane.comp.python.cvs
Message-ID <[email protected]>
https://github.com/python/cpython/commit/53d2e14a3081085a12c65cff14de77604da14670
commit: 53d2e14a3081085a12c65cff14de77604da14670
branch: main
author: Stan Ulbrych <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-08-23T19:52:58Z
summary:

gh-156244: Update `configure` for RISC-V support (#156277)

Co-authored-by: Emma Smith <[email protected]>

files:
A Misc/NEWS.d/next/Build/2026-08-23-12-10-45.gh-issue-156244.Rv6qXt.rst
M configure
M configure.ac

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 1373474034197d..6b560fe6841b72 100755
--- a/configure
+++ b/configure
@@ -7470,7 +7470,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 be83c49da1a83d..476f13c82bbb2b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1269,6 +1269,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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.