Skip to content

Commit 072e77a

Browse files
committed
mbedtls: Disable ASM when compiling with LLVM MemorySanitizer (MSAN)
1 parent d52b84e commit 072e77a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

thirdparty/mbedtls/include/godot_module_mbedtls_config.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@
5656
#undef MBEDTLS_AESCE_C
5757
#endif
5858

59+
#if defined(__has_feature)
60+
#if __has_feature(memory_sanitizer)
61+
// MemorySanitizer is incompatible with ASM.
62+
#undef MBEDTLS_HAVE_ASM
63+
#undef MBEDTLS_AESNI_C
64+
#endif
65+
#endif
66+
5967
// Disable deprecated
6068
#define MBEDTLS_DEPRECATED_REMOVED
6169

0 commit comments

Comments
 (0)