Skip to content

Commit

Permalink
[AArch64][compiler-rt] Fix HWCAP_CPUID not defined in some cases.
Browse files Browse the repository at this point in the history
Define HWCAP_CPUID to fix commit e43924a.
  • Loading branch information
ilinpv committed Dec 20, 2022
1 parent 740db97 commit a43f361
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compiler-rt/lib/builtins/cpu_model.c
Expand Up @@ -921,6 +921,9 @@ _Bool __aarch64_have_lse_atomics
#define AT_HWCAP 16
#endif

#ifndef HWCAP_CPUID
#define HWCAP_CPUID (1 << 11)
#endif
#ifndef HWCAP_FP
#define HWCAP_FP (1 << 0)
#endif
Expand Down

0 comments on commit a43f361

Please sign in to comment.