diff options
author | Taku Kudo <taku@google.com> | 2018-07-25 18:17:12 +0300 |
---|---|---|
committer | Taku Kudo <taku@google.com> | 2018-07-25 18:17:12 +0300 |
commit | 9c3ea57a98642249259bcdffa57374954ff8e4ae (patch) | |
tree | 33b7f07df7f3e7b8555a2a6f9e4d6733b4fe2b5a /src/CMakeLists.txt | |
parent | 8238987aaf6dd7bc2b703c4d824ed7dadc89b9ad (diff) |
Add messages to tcmalloc
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 59206d2..805b470 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -118,7 +118,11 @@ if (SPM_ENABLE_TCMALLOC) find_library(TCMALLOC_LIB NAMES tcmalloc_minimal) endif() if (TCMALLOC_LIB) + message(STATUS "Found TCMalloc: ${TCMALLOC_LIB}") list(APPEND SPM_LIBS ${TCMALLOC_LIB}) + add_definitions(-fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free) + else() + message(STATUS "Not Found TCMalloc: ${TCMALLOC_LIB}") endif() endif() |