Core/Misc: Add valgrind support for jemalloc

Set CMake option VALGRIND to add valgrind support to jemalloc. Set CMake parameter VALGRIND_INCLUDE_DIR to the valgrind include directory.

(cherry picked from commit 60a29f7614)
This commit is contained in:
jackpoz
2015-06-20 22:54:53 +02:00
committed by DDuarte
parent a3faa57f3b
commit c0f56fbfd8
2 changed files with 8 additions and 0 deletions

View File

@@ -106,6 +106,13 @@ if ( NOJEM )
message(" *** jemalloc linking has been disabled!")
message(" *** Please note that this is for DEBUGGING WITH VALGRIND only!")
message(" *** DO NOT DISABLE IT UNLESS YOU KNOW WHAT YOU'RE DOING!")
elseif ( VALGRIND )
message("")
message(" *** VALGRIND - WARNING!")
message(" *** jemalloc will be configured to support Valgrind")
message(" *** Please specify the valgrind include directory in VALGRIND_INCLUDE_DIR option if you get build errors")
message(" *** Please note that this is for DEBUGGING WITH VALGRIND only!")
add_definitions(-DJEMALLOC_VALGRIND)
endif()
if ( HELGRIND )