From c2788f9793ae0cf4a75fc1e603040a56802d5600 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 15 Sep 2024 15:00:27 +0300 Subject: [PATCH] thirdparty: fix compilation of thirdparty/mbedtls with tcc on macos m1 --- thirdparty/mbedtls/include/mbedtls/check_config.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/thirdparty/mbedtls/include/mbedtls/check_config.h b/thirdparty/mbedtls/include/mbedtls/check_config.h index 04e43e39d7d8be..8a8f098f293be5 100644 --- a/thirdparty/mbedtls/include/mbedtls/check_config.h +++ b/thirdparty/mbedtls/include/mbedtls/check_config.h @@ -23,6 +23,12 @@ #ifndef MBEDTLS_CHECK_CONFIG_H #define MBEDTLS_CHECK_CONFIG_H +#if ( defined(__TINYC__) && defined(__APPLE__) && defined(__arm64__) ) +#undef MBEDTLS_HAVE_ASM +#undef MBEDTLS_AESNI_C +#undef MBEDTLS_PADLOCK_C +#endif + /* * We assume CHAR_BIT is 8 in many places. In practice, this is true on our * target platforms, so not an issue, but let's just be extra sure.