From 19b7110ce72416f81e662d67d55e981fbf3b68de Mon Sep 17 00:00:00 2001 From: Joshua Root Date: Tue, 10 Feb 2026 17:24:00 +1100 Subject: [PATCH 1/2] pythongh-140421: Disable perf trampoline on older macOS Requires clock_gettime() which was added in 10.12. --- configure | 8 +++++++- configure.ac | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-) 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]) From b4c70a400a15759b79ef4f34e3d68b829533ce1f Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Tue, 10 Feb 2026 06:31:39 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Build/2026-02-10-06-31-29.gh-issue-140421.vxosUx.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Build/2026-02-10-06-31-29.gh-issue-140421.vxosUx.rst 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.