|
|
@ -7,7 +7,7 @@ index 754c984c79..59e27afd3e 100644 |
|
|
* target flag is enabled when building the library (e.g. `gcc -mpclmul -msse2` |
|
|
* target flag is enabled when building the library (e.g. `gcc -mpclmul -msse2` |
|
|
* or `clang -maes -mpclmul`). */ |
|
|
* or `clang -maes -mpclmul`). */ |
|
|
-#if (defined(__GNUC__) || defined(__clang__)) && defined(__AES__) && defined(__PCLMUL__)
|
|
|
-#if (defined(__GNUC__) || defined(__clang__)) && defined(__AES__) && defined(__PCLMUL__)
|
|
|
+#if defined(__GNUC__) || defined(__clang__)
|
|
|
|
|
|
|
|
|
+#if (defined(__GNUC__) || defined(__clang__)) && !defined(_LIBCPP_HAS_MUSL_LIBC)
|
|
|
#define MBEDTLS_AESNI_HAVE_INTRINSICS |
|
|
#define MBEDTLS_AESNI_HAVE_INTRINSICS |
|
|
#endif |
|
|
#endif |
|
|
/* For 32-bit, we only support intrinsics */ |
|
|
/* For 32-bit, we only support intrinsics */ |
|
|
|