Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/sentencepiece.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaku Kudo <taku@google.com>2018-07-25 18:17:12 +0300
committerTaku Kudo <taku@google.com>2018-07-25 18:17:12 +0300
commit9c3ea57a98642249259bcdffa57374954ff8e4ae (patch)
tree33b7f07df7f3e7b8555a2a6f9e4d6733b4fe2b5a /src/CMakeLists.txt
parent8238987aaf6dd7bc2b703c4d824ed7dadc89b9ad (diff)
Add messages to tcmalloc
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt4
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()