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])