mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 17:14:30 +02:00
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
This commit is contained in:
parent
925942e7af
commit
db39910f08
6 changed files with 11 additions and 15 deletions
|
|
@ -197,7 +197,7 @@ ENDIF()
|
|||
|
||||
IF(WITH_SAFEMALLOC MATCHES "ON")
|
||||
ADD_DEFINITIONS( -DSAFEMALLOC ${DUSE_MYSYS_NEW})
|
||||
ELSEIF(WITH_SAFEMALLOC MATCHES "AUTO" AND NOT WIN32)
|
||||
ELSEIF(WITH_SAFEMALLOC MATCHES "AUTO" AND NOT WIN32 AND NOT WITH_VALGRIND)
|
||||
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DSAFEMALLOC")
|
||||
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DSAFEMALLOC ${DUSE_MYSYS_NEW}")
|
||||
ENDIF()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue