Merge pull request #104912 from akien-mga/mbedtls-msan-disable-asm

mbedtls: Disable ASM when compiling with LLVM MemorySanitizer (MSAN)
This commit is contained in:
Thaddeus Crews
2025-04-24 17:18:49 -05:00

View File

@ -56,6 +56,14 @@
#undef MBEDTLS_AESCE_C
#endif
#if defined(__has_feature)
#if __has_feature(memory_sanitizer)
// MemorySanitizer is incompatible with ASM.
#undef MBEDTLS_HAVE_ASM
#undef MBEDTLS_AESNI_C
#endif
#endif
// Disable deprecated
#define MBEDTLS_DEPRECATED_REMOVED