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

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcin Junczys-Dowmunt <marcinjd@microsoft.com>2021-03-22 18:02:04 +0300
committerGitHub <noreply@github.com>2021-03-22 18:02:04 +0300
commit096c48e51cd2e61bb275345d7cca99cbfd6bc5c7 (patch)
tree877e3b36731d2bc4cbe9720325dd36ab6454eddb /src
parent9e36c73fa9016f308e7ae81dcf4c5fd476ce4823 (diff)
remove TC_MALLOC from optional dependencies (#840)
There seems to be no benefit from TC_MALLOC any more, hence removing.
Diffstat (limited to 'src')
-rw-r--r--src/3rd_party/CMakeLists.txt8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/3rd_party/CMakeLists.txt b/src/3rd_party/CMakeLists.txt
index 2bef3129..9a809d5e 100644
--- a/src/3rd_party/CMakeLists.txt
+++ b/src/3rd_party/CMakeLists.txt
@@ -74,13 +74,9 @@ if(USE_SENTENCEPIECE)
if(NOT GENERATE_MARIAN_INSTALL_TARGETS)
set(SPM_ENABLE_SHARED OFF CACHE BOOL "Builds shared libaries in addition to static libraries." FORCE)
endif()
- set(SPM_ENABLE_TCMALLOC ON CACHE BOOL "Enable TCMalloc if available.")
- if(USE_STATIC_LIBS)
- set(SPM_TCMALLOC_STATIC ON CACHE BOOL "Link static library of TCMALLOC." FORCE)
- else(USE_STATIC_LIBS)
- set(SPM_TCMALLOC_STATIC OFF CACHE BOOL "Link static library of TCMALLOC.")
- endif(USE_STATIC_LIBS)
+ # disable TCMALLOC for SentencePiece
+ set(SPM_ENABLE_TCMALLOC OFF CACHE BOOL "Enable TCMalloc if available." FORCE)
add_subdirectory(./sentencepiece)
include_directories(./sentencepiece)