Skip to content

Commit 36850a0

Browse files
authored
[llvm-exegesis][AArch64] Adding PR_PAC_APIAKEY macro definition (llvm#137888)
In older Linux distros, PR_PAC_APIAKEY is not defined and it causes build failures on linux arm64 platform. This patch adds the definition of this macro if it is not defined.
1 parent d5272e4 commit 36850a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
#ifndef PR_PAC_GET_ENABLED_KEYS
1919
#define PR_PAC_GET_ENABLED_KEYS 61
2020
#endif
21+
#ifndef PR_PAC_APIAKEY
22+
#define PR_PAC_APIAKEY (1UL << 0)
23+
#endif
2124
#endif
2225

2326
#define GET_AVAILABLE_OPCODE_CHECKER

0 commit comments

Comments
 (0)