https://github.com/python/cpython/commit/d5f96c86653de4dc8c5074ab0bf3027d0a3c1878
commit: d5f96c86653de4dc8c5074ab0bf3027d0a3c1878
branch: main
author: Joshua Root <[email protected]>
committer: ned-deily <[email protected]>
date: 2026-02-10T23:27:16-05:00
summary:
gh-140421: Disable perf trampoline on older macOS (#144647)
Trampoline requires clock_gettime() which was added in macOS 10.12.
files:
A Misc/NEWS.d/next/Build/2026-02-10-06-31-29.gh-issue-140421.vxosUx.rst
M configure
M configure.ac
diff --git
a/Misc/NEWS.d/next/Build/2026-02-10-06-31-29.gh-issue-140421.vxosUx.rst
b/Misc/NEWS.d/next/Build/2026-02-10-06-31-29.gh-issue-140421.vxosUx.rst
new file mode 100644
index 00000000000000..cab48f105cc58b
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2026-02-10-06-31-29.gh-issue-140421.vxosUx.rst
@@ -0,0 +1 @@
+Disable the perf trampoline on older macOS versions where it cannot be built.
diff --git a/configure b/configure
index cd8983683333cd..73a758384553b2 100755
--- a/configure
+++ b/configure
@@ -13873,7 +13873,13 @@ case $PLATFORM_TRIPLET in #(
aarch64-linux-gnu) :
perf_trampoline=yes ;; #(
darwin) :
- perf_trampoline=yes ;; #(
+ case $MACOSX_DEPLOYMENT_TARGET in #(
+ 10.[0-9]|10.1[0-1]) :
+ perf_trampoline=no ;; #(
+ *) :
+ perf_trampoline=yes
+ ;;
+esac ;; #(
*) :
perf_trampoline=no
;;
diff --git a/configure.ac b/configure.ac
index e9b45d459fee2a..2ba63b2a8a05e0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3717,7 +3717,10 @@ AC_MSG_CHECKING([perf trampoline])
AS_CASE([$PLATFORM_TRIPLET],
[x86_64-linux-gnu], [perf_trampoline=yes],
[aarch64-linux-gnu], [perf_trampoline=yes],
- [darwin], [perf_trampoline=yes],
+ [darwin], [AS_CASE([$MACOSX_DEPLOYMENT_TARGET],
+ [[10.[0-9]|10.1[0-1]]], [perf_trampoline=no],
+ [perf_trampoline=yes]
+ )],
[perf_trampoline=no]
)
AC_MSG_RESULT([$perf_trampoline])
_______________________________________________
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]