Skip to content

Commit be6f20a

Browse files
authored
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.
1 parent 3e93a13 commit be6f20a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

thirdparty/mbedtls/library/aesni.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434

3535
#if defined(MBEDTLS_HAVE_ASM) && defined(__GNUC__) && \
3636
( defined(__amd64__) || defined(__x86_64__) ) && \
37-
! defined(MBEDTLS_HAVE_X86_64)
37+
! defined(MBEDTLS_HAVE_X86_64) && \
38+
! defined(__TINYC__)
3839
#define MBEDTLS_HAVE_X86_64
3940
#endif
4041

0 commit comments

Comments
 (0)