mdbx: поддержка ASAN (Address Sanitizer) при сборке посредством MSVC.

This commit is contained in:
Leonid Yuriev
2023-02-26 20:26:54 +03:00
committed by Леонид Юрьев (Leonid Yuriev)
parent 359489e271
commit 6d74b10db1
4 changed files with 27 additions and 5 deletions

View File

@@ -25654,7 +25654,10 @@ __dll_export
};
#ifdef __SANITIZE_ADDRESS__
LIBMDBX_API __attribute__((__weak__)) const char *__asan_default_options(void) {
#if !defined(_MSC_VER) || __has_attribute(weak)
LIBMDBX_API __attribute__((__weak__))
#endif
const char *__asan_default_options(void) {
return "symbolize=1:allow_addr2line=1:"
#if MDBX_DEBUG
"debug=1:"