From: Joshua Root Date: Wed, 11 Feb 2026 04:27:16 +0000 (+1100) Subject: gh-140421: Disable perf trampoline on older macOS (#144647) X-Git-Tag: v3.15.0a6~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5f96c86653de4dc8c5074ab0bf3027d0a3c1878;p=thirdparty%2FPython%2Fcpython.git gh-140421: Disable perf trampoline on older macOS (#144647) Trampoline requires clock_gettime() which was added in macOS 10.12. --- 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 000000000000..cab48f105cc5 --- /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 cd8983683333..73a758384553 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 e9b45d459fee..2ba63b2a8a05 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])