Skip to content

Commit a43f361

Browse files
committed
[AArch64][compiler-rt] Fix HWCAP_CPUID not defined in some cases.
Define HWCAP_CPUID to fix commit e43924a.
1 parent 740db97 commit a43f361

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler-rt/lib/builtins/cpu_model.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,9 @@ _Bool __aarch64_have_lse_atomics
921921
#define AT_HWCAP 16
922922
#endif
923923

924+
#ifndef HWCAP_CPUID
925+
#define HWCAP_CPUID (1 << 11)
926+
#endif
924927
#ifndef HWCAP_FP
925928
#define HWCAP_FP (1 << 0)
926929
#endif

0 commit comments

Comments
 (0)