fix wrong compiler checks

- Add msc version check
- remove HAVE_ASM due to conflict with check_config

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2023-04-25 10:24:53 +08:00
parent a7d454cec2
commit 8f0e3d4c22

View File

@ -31,13 +31,13 @@
#include "mbedtls/aes.h" #include "mbedtls/aes.h"
#if !defined(MBEDTLS_HAVE_ARM64) #if !defined(MBEDTLS_HAVE_ARM64)
#if defined(MBEDTLS_HAVE_ASM) && defined(__GNUC__) && \ #if defined(__GNUC__) && defined(__aarch64__)
defined(__aarch64__)
#define MBEDTLS_HAVE_ARM64 #define MBEDTLS_HAVE_ARM64
#endif #endif
/* MSVC */ /* MSVC */
#if defined(_M_ARM64) || defined(_M_ARM64EC) #if defined(_MSC_VER) && _MSC_VER >=1929 && \
(defined(_M_ARM64) || defined(_M_ARM64EC))
#define MBEDTLS_HAVE_ARM64 #define MBEDTLS_HAVE_ARM64
#endif #endif
#endif #endif