Add compiler cflags error message
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
506759f5ce
commit
3ce0398d1d
1 changed files with 2 additions and 0 deletions
|
@ -76,6 +76,8 @@
|
||||||
#elif defined(MBEDTLS_HAVE_ASM) && \
|
#elif defined(MBEDTLS_HAVE_ASM) && \
|
||||||
defined(__GNUC__) && defined(MBEDTLS_HAVE_X86_64)
|
defined(__GNUC__) && defined(MBEDTLS_HAVE_X86_64)
|
||||||
#define MBEDTLS_AESNI_HAVE_CODE 1 // via assembly
|
#define MBEDTLS_AESNI_HAVE_CODE 1 // via assembly
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
# error "Must use `-mpclmul -msse2 -maes` for MBEDTLS_AESNI_C"
|
||||||
#else
|
#else
|
||||||
#error "MBEDTLS_AESNI_C defined, but neither intrinsics nor assembly available"
|
#error "MBEDTLS_AESNI_C defined, but neither intrinsics nor assembly available"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue