From be6f20a2886baa19b55e15df5c65e058df4749ef Mon Sep 17 00:00:00 2001 From: Kim Shrier Date: Wed, 6 Sep 2023 00:28:48 -0600 Subject: [PATCH] thirdparty/mbedtls: do not define MBEDTLS_HAVE_X86_64, when compiling with tcc (#19273) While the tcc compiler does support some of the SSE instructions, it does not support all of them. And, in particular, it doesn't support movdqu which is used in the assembly language instructions in aesni.c. --- thirdparty/mbedtls/library/aesni.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thirdparty/mbedtls/library/aesni.h b/thirdparty/mbedtls/library/aesni.h index 3359cfe94f..b6f7257833 100644 --- a/thirdparty/mbedtls/library/aesni.h +++ b/thirdparty/mbedtls/library/aesni.h @@ -34,7 +34,8 @@ #if defined(MBEDTLS_HAVE_ASM) && defined(__GNUC__) && \ ( defined(__amd64__) || defined(__x86_64__) ) && \ - ! defined(MBEDTLS_HAVE_X86_64) + ! defined(MBEDTLS_HAVE_X86_64) && \ + ! defined(__TINYC__) #define MBEDTLS_HAVE_X86_64 #endif