From d5f96c86653de4dc8c5074ab0bf3027d0a3c1878 Mon Sep 17 00:00:00 2001 From: Joshua Root Date: Wed, 11 Feb 2026 15:27:16 +1100 Subject: [PATCH] gh-140421: Disable perf trampoline on older macOS (#144647) Trampoline requires clock_gettime() which was added in macOS 10.12. --- .../Build/2026-02-10-06-31-29.gh-issue-140421.vxosUx.rst | 1 + configure | 8 +++++++- configure.ac | 5 ++++- 3 files changed, 12 insertions(+), 2 deletions(-) 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. 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])