diff --git a/src/native/minipal/cpufeatures.c b/src/native/minipal/cpufeatures.c index a606bfbe76b4d..b0547b5dc4930 100644 --- a/src/native/minipal/cpufeatures.c +++ b/src/native/minipal/cpufeatures.c @@ -355,6 +355,8 @@ int minipal_getcpufeatures(void) #ifdef HWCAP_LRCPC if (hwCap & HWCAP_LRCPC) result |= ARM64IntrinsicConstants_Rcpc; +#else +#error No HWCAP_LRCPC #endif #ifdef HWCAP_PMULL // if (hwCap & HWCAP_PMULL) @@ -445,6 +447,8 @@ int minipal_getcpufeatures(void) #else // !HAVE_AUXV_HWCAP_H +#error No HAVE_AUXV_HWCAP_H + #if HAVE_SYSCTLBYNAME int64_t valueFromSysctl = 0; size_t sz = sizeof(valueFromSysctl);