diff --git a/include/mbedtls/check_config.h b/include/mbedtls/check_config.h index ca60a9d92..85c1de8c6 100644 --- a/include/mbedtls/check_config.h +++ b/include/mbedtls/check_config.h @@ -70,9 +70,12 @@ #error "MBEDTLS_AESNI_C defined, but not all prerequisites" #endif +#if defined(__aarch64__) && defined(__GNUC__) +/* We don't do anything with MBEDTLS_AESCE_C on systems without ^ these two */ #if defined(MBEDTLS_AESCE_C) && !defined(MBEDTLS_HAVE_ASM) #error "MBEDTLS_AESCE_C defined, but not all prerequisites" #endif +#endif #if defined(MBEDTLS_CTR_DRBG_C) && !defined(MBEDTLS_AES_C) #error "MBEDTLS_CTR_DRBG_C defined, but not all prerequisites"