Skip to content

Commit d5f96c8

Browse files
authored
gh-140421: Disable perf trampoline on older macOS (#144647)
Trampoline requires clock_gettime() which was added in macOS 10.12.
1 parent d18dbd5 commit d5f96c8

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Disable the perf trampoline on older macOS versions where it cannot be built.

configure

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3717,7 +3717,10 @@ AC_MSG_CHECKING([perf trampoline])
37173717
AS_CASE([$PLATFORM_TRIPLET],
37183718
[x86_64-linux-gnu], [perf_trampoline=yes],
37193719
[aarch64-linux-gnu], [perf_trampoline=yes],
3720-
[darwin], [perf_trampoline=yes],
3720+
[darwin], [AS_CASE([$MACOSX_DEPLOYMENT_TARGET],
3721+
[[10.[0-9]|10.1[0-1]]], [perf_trampoline=no],
3722+
[perf_trampoline=yes]
3723+
)],
37213724
[perf_trampoline=no]
37223725
)
37233726
AC_MSG_RESULT([$perf_trampoline])

0 commit comments

Comments
 (0)