mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user