Quellcode durchsuchen

mbedtls: Disable ASM when compiling with LLVM MemorySanitizer (MSAN)

Rémi Verschelde vor 4 Monaten
Ursprung
Commit
072e77ab40
1 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen
  1. 8 0
      thirdparty/mbedtls/include/godot_module_mbedtls_config.h

+ 8 - 0
thirdparty/mbedtls/include/godot_module_mbedtls_config.h

@@ -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