From 0ea184fc39b48096713dbdf9c9b39de3a976d6eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Sun, 29 Oct 2023 18:48:22 +0100 Subject: [PATCH] libavutil/aarch64/cpu.c: HWCAPS requires inline asm support. Fixes compilation with tcc, which does not have aarch64 inline asm support. --- libavutil/aarch64/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/aarch64/cpu.c b/libavutil/aarch64/cpu.c index 2b50c426bc..f27fef3992 100644 --- a/libavutil/aarch64/cpu.c +++ b/libavutil/aarch64/cpu.c @@ -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