libavutil/aarch64/cpu.c: HWCAPS requires inline asm support.

Fixes compilation with tcc, which does not have aarch64
inline asm support.
This commit is contained in:
Reimar Döffinger 2023-10-29 18:48:22 +01:00
parent a31992634f
commit 0ea184fc39
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ static int detect_flags(void)
{
int flags = 0;
#if defined(HWCAP_CPUID)
#if defined(HWCAP_CPUID) && HAVE_INLINE_ASM
unsigned long hwcap = getauxval(AT_HWCAP);
// We can check for DOTPROD and I8MM using HWCAP_ASIMDDP and
// HWCAP2_I8MM too, avoiding to read the CPUID registers (which triggers