Skip to content

Commit

Permalink
thirdparty: fix compilation of thirdparty/mbedtls with tcc on macos m1
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Sep 15, 2024
1 parent 755a4bc commit c2788f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions thirdparty/mbedtls/include/mbedtls/check_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c2788f9

Please sign in to comment.