mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Remove support for tcmalloc
This commit is contained in:
parent
0d089700fa
commit
fe604cf3e7
@ -352,7 +352,6 @@ if (ENABLE_TESTS)
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# Need to process before "contrib" dir:
|
# Need to process before "contrib" dir:
|
||||||
include (libs/libcommon/cmake/find_gperftools.cmake)
|
|
||||||
include (libs/libcommon/cmake/find_jemalloc.cmake)
|
include (libs/libcommon/cmake/find_jemalloc.cmake)
|
||||||
include (libs/libcommon/cmake/find_cctz.cmake)
|
include (libs/libcommon/cmake/find_cctz.cmake)
|
||||||
include (libs/libmysqlxx/cmake/find_mysqlclient.cmake)
|
include (libs/libmysqlxx/cmake/find_mysqlclient.cmake)
|
||||||
@ -362,18 +361,6 @@ include (libs/libmysqlxx/cmake/find_mysqlclient.cmake)
|
|||||||
if (USE_JEMALLOC)
|
if (USE_JEMALLOC)
|
||||||
message (STATUS "Link jemalloc: ${JEMALLOC_LIBRARIES}")
|
message (STATUS "Link jemalloc: ${JEMALLOC_LIBRARIES}")
|
||||||
set (MALLOC_LIBRARIES ${JEMALLOC_LIBRARIES})
|
set (MALLOC_LIBRARIES ${JEMALLOC_LIBRARIES})
|
||||||
elseif (USE_TCMALLOC)
|
|
||||||
if (DEBUG_TCMALLOC AND NOT GPERFTOOLS_TCMALLOC_MINIMAL_DEBUG)
|
|
||||||
message (FATAL_ERROR "Requested DEBUG_TCMALLOC but debug library is not found. You should install Google Perftools. Example: sudo apt-get install libgoogle-perftools-dev")
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (DEBUG_TCMALLOC AND GPERFTOOLS_TCMALLOC_MINIMAL_DEBUG)
|
|
||||||
message (STATUS "Link libtcmalloc_minimal_debug for testing: ${GPERFTOOLS_TCMALLOC_MINIMAL_DEBUG}")
|
|
||||||
set (MALLOC_LIBRARIES ${GPERFTOOLS_TCMALLOC_MINIMAL_DEBUG})
|
|
||||||
else ()
|
|
||||||
message (STATUS "Link libtcmalloc_minimal: ${GPERFTOOLS_TCMALLOC_MINIMAL}")
|
|
||||||
set (MALLOC_LIBRARIES ${GPERFTOOLS_TCMALLOC_MINIMAL})
|
|
||||||
endif ()
|
|
||||||
elseif (SANITIZE)
|
elseif (SANITIZE)
|
||||||
message (STATUS "Will use ${SANITIZE} sanitizer.")
|
message (STATUS "Will use ${SANITIZE} sanitizer.")
|
||||||
elseif (OS_LINUX)
|
elseif (OS_LINUX)
|
||||||
|
4
contrib/CMakeLists.txt
vendored
4
contrib/CMakeLists.txt
vendored
@ -79,10 +79,6 @@ if (USE_INTERNAL_CCTZ_LIBRARY)
|
|||||||
add_subdirectory (cctz-cmake)
|
add_subdirectory (cctz-cmake)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (ENABLE_TCMALLOC AND USE_INTERNAL_GPERFTOOLS_LIBRARY)
|
|
||||||
add_subdirectory (libtcmalloc)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (ENABLE_JEMALLOC AND USE_INTERNAL_JEMALLOC_LIBRARY)
|
if (ENABLE_JEMALLOC AND USE_INTERNAL_JEMALLOC_LIBRARY)
|
||||||
add_subdirectory (jemalloc-cmake)
|
add_subdirectory (jemalloc-cmake)
|
||||||
endif ()
|
endif ()
|
||||||
|
Loading…
Reference in New Issue
Block a user