diff options
author | Monty <monty@mariadb.org> | 2019-08-15 23:42:07 +0300 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-08-23 22:06:30 +0200 |
commit | d90fa9ad28a8bceb58a0e5caaecab50334c99b35 (patch) | |
tree | 16dacbe08d323958281be0f5cfa0e07218bdfa3d /sql/mysqld.cc | |
parent | 97dd057702d167559cdaee86eb0b1a455d925168 (diff) | |
download | mariadb-git-d90fa9ad28a8bceb58a0e5caaecab50334c99b35.tar.gz |
Added asan options to mysql-test-run
- Leak detection is now enabled by default
- Also added to mysql-test suppression files for asan and lsan
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 689258158a1..2b5ce8d9f9f 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -675,7 +675,7 @@ MY_LOCALE *my_default_lc_time_names; SHOW_COMP_OPTION have_ssl, have_symlink, have_dlopen, have_query_cache; SHOW_COMP_OPTION have_geometry, have_rtree_keys; -SHOW_COMP_OPTION have_crypt, have_compress; +SHOW_COMP_OPTION have_crypt, have_compress, have_sanitizer; SHOW_COMP_OPTION have_profiling; SHOW_COMP_OPTION have_openssl; @@ -7957,6 +7957,14 @@ static int mysql_init_variables(void) #endif /* ! EMBEDDED_LIBRARY */ #endif /* HAVE_OPENSSL */ +have_sanitizer= SHOW_OPTION_NO; +#if defined(__has_feature) +#if __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__) + have_sanitizer= SHOW_OPTION_YES; +#endif +#endif + + #if defined(__WIN__) /* Allow Win32 users to move MySQL anywhere */ { |