diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2021-03-12 08:43:37 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2021-03-12 08:44:55 +0100 |
commit | 031b3dfc22c3d37769d49da902401b26a24f12b4 (patch) | |
tree | 8fa75c509f99994a6044a737040363c469e463e6 /include/my_valgrind.h | |
parent | 4c2b6be38e7c62d585b137ab9b3af4907a08a737 (diff) | |
download | mariadb-git-031b3dfc22c3d37769d49da902401b26a24f12b4.tar.gz |
MDEV-25123 support MSVC ASAN
Diffstat (limited to 'include/my_valgrind.h')
-rw-r--r-- | include/my_valgrind.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/my_valgrind.h b/include/my_valgrind.h index 62794a2d70c..daea5266a28 100644 --- a/include/my_valgrind.h +++ b/include/my_valgrind.h @@ -47,7 +47,7 @@ # define MEM_GET_VBITS(a,b,len) VALGRIND_GET_VBITS(a,b,len) # define MEM_SET_VBITS(a,b,len) VALGRIND_SET_VBITS(a,b,len) # define REDZONE_SIZE 8 -#elif defined(__SANITIZE_ADDRESS__) +#elif defined(__SANITIZE_ADDRESS__) && (!defined(_MSC_VER) || defined (__clang__)) # include <sanitizer/asan_interface.h> /* How to do manual poisoning: https://github.com/google/sanitizers/wiki/AddressSanitizerManualPoisoning */ |