summaryrefslogtreecommitdiff
path: root/config.h.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-02-23 15:31:24 +0100
committerSergei Golubchik <sergii@pisem.net>2012-02-23 15:31:24 +0100
commitdb39910f080534159ce8c7d55fa458365de7c3f3 (patch)
treea0c872edccc12d60bad587b65d5e8eaf374e5060 /config.h.cmake
parent925942e7af49eebc5ffeff705bb2167eb86a9dcb (diff)
downloadmariadb-git-db39910f080534159ce8c7d55fa458365de7c3f3.tar.gz
disable safemalloc for valgrind builds.
always try to use valgrind headers in debug builds. define HAVE_valgrind for --with-valgrind fix valgrind check in my_valgrind.h
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.h.cmake b/config.h.cmake
index eae3a4ba886..529e1c7ad1d 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -313,7 +313,11 @@
#define USE_MB 1
#define USE_MB_IDENT 1
-#cmakedefine HAVE_VALGRIND
+/* this means that valgrind headers and macros are available */
+#cmakedefine HAVE_VALGRIND 1
+
+/* this means WITH_VALGRIND - we change some code paths for valgrind */
+#cmakedefine HAVE_valgrind 1
/* Types we may use */
#ifdef __APPLE__