From 9b14cfd605b74551185e0d2b70580d197c452a02 Mon Sep 17 00:00:00 2001 From: Brian White Date: Mon, 18 Jul 2022 16:36:08 -0400 Subject: [PATCH] NEON64: enc: no inline asm for clang -O0 --- lib/arch/neon64/codec.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/arch/neon64/codec.c b/lib/arch/neon64/codec.c index fc953b23..ef8b7c16 100644 --- a/lib/arch/neon64/codec.c +++ b/lib/arch/neon64/codec.c @@ -18,8 +18,12 @@ #include // Only enable inline assembly on supported compilers. -#if defined(__GNUC__) || defined(__clang__) -#define BASE64_NEON64_USE_ASM +#if defined(__clang__) +# if defined(__OPTIMIZE__) +# define BASE64_NEON64_USE_ASM +# endif +#elif defined(__GNUC__) +# define BASE64_NEON64_USE_ASM #endif static inline uint8x16x4_t