fix clang test fail
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
61c4cfa2a7
commit
db368dea88
1 changed files with 12 additions and 6 deletions
|
@ -49,15 +49,21 @@
|
||||||
#if defined(MBEDTLS_HAVE_ARM64)
|
#if defined(MBEDTLS_HAVE_ARM64)
|
||||||
|
|
||||||
/* Compiler version checks. */
|
/* Compiler version checks. */
|
||||||
#if defined(__clang__) && (__clang_major__ < 4)
|
#if defined(__clang__)
|
||||||
# error "Minimum version of Clang for MBEDTLS_AESCE_C is 4.0."
|
# if __clang_major__ < 4
|
||||||
#elif defined(__GNUC__) && (__GNUC__ < 6)
|
# error "Minimum version of Clang for MBEDTLS_AESCE_C is 4.0."
|
||||||
# error "Minimum version of GCC for MBEDTLS_AESCE_C is 6.0."
|
# endif
|
||||||
#elif defined(_MSC_VER) && (_MSC_VER < 1929)
|
#elif defined(__GNUC__)
|
||||||
|
# if __GNUC__ < 6
|
||||||
|
# error "Minimum version of GCC for MBEDTLS_AESCE_C is 6.0."
|
||||||
|
# endif
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
/* TODO: We haven't verified MSVC from 1920 to 1928. If someone verified that,
|
/* TODO: We haven't verified MSVC from 1920 to 1928. If someone verified that,
|
||||||
* please update this and document of `MBEDTLS_AESCE_C` in
|
* please update this and document of `MBEDTLS_AESCE_C` in
|
||||||
* `mbedtls_config.h`. */
|
* `mbedtls_config.h`. */
|
||||||
# error "Minimum version of MSVC for MBEDTLS_AESCE_C is 2019 version 16.11.2."
|
# if _MSC_VER < 1929
|
||||||
|
# error "Minimum version of MSVC for MBEDTLS_AESCE_C is 2019 version 16.11.2."
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__ARM_FEATURE_AES) || defined(MBEDTLS_ENABLE_ARM_CRYPTO_EXTENSIONS_COMPILER_FLAG)
|
#if !defined(__ARM_FEATURE_AES) || defined(MBEDTLS_ENABLE_ARM_CRYPTO_EXTENSIONS_COMPILER_FLAG)
|
||||||
|
|
Loading…
Reference in a new issue