[3.15] gh-152769: fixup enabling of perf trampoline on musl (Alpine Linux) (#153995)

vstinner <[email protected]>
Newsgroups gmane.comp.python.cvs
Message-ID <[email protected]>
https://github.com/python/cpython/commit/32cf04b159bd8990ff8a10eba929a22ad846e233
commit: 32cf04b159bd8990ff8a10eba929a22ad846e233
branch: 3.15
author: Jonathan J. Helmus <[email protected]>
committer: vstinner <[email protected]>
date: 2026-07-19T09:39:05Z
summary:

[3.15] gh-152769: fixup enabling of perf trampoline on musl (Alpine Linux) (#153995)

Co-authored-by: Victor Stinner <[email protected]>

files:
M configure
M configure.ac

diff --git a/configure b/configure
index 08a7c663ce0a9c..af350fbb132d78 100755
--- a/configure
+++ b/configure
@@ -14431,10 +14431,10 @@ case $PLATFORM_TRIPLET in #(
     perf_trampoline=yes ;; #(
   aarch64-linux-gnu) :
     perf_trampoline=yes ;; #(
-  x86_64-linux-gnu) :
-    perf_trampoline=yes ;; #(
   x86_64-linux-musl) :
     perf_trampoline=yes ;; #(
+  aarch64-linux-musl) :
+    perf_trampoline=yes ;; #(
   darwin) :
     case $MACOSX_DEPLOYMENT_TARGET in #(
   10.[0-9]|10.1[0-1]) :
diff --git a/configure.ac b/configure.ac
index ead82d6da0b545..a8bd6b884a131c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3873,8 +3873,8 @@ AC_MSG_CHECKING([perf trampoline])
 AS_CASE([$PLATFORM_TRIPLET],
   [x86_64-linux-gnu], [perf_trampoline=yes],
   [aarch64-linux-gnu], [perf_trampoline=yes],
-  [x86_64-linux-gnu], [perf_trampoline=yes],
   [x86_64-linux-musl], [perf_trampoline=yes],
+  [aarch64-linux-musl], [perf_trampoline=yes],
   [darwin], [AS_CASE([$MACOSX_DEPLOYMENT_TARGET],
                 [[10.[0-9]|10.1[0-1]]], [perf_trampoline=no],
                 [perf_trampoline=yes]

_______________________________________________
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.