From 99731ae689ecad65211cd3473056a6e82771f026 Mon Sep 17 00:00:00 2001 From: luwenpeng Date: Tue, 27 Oct 2020 12:43:48 +0800 Subject: [PATCH] =?UTF-8?q?TFE=20=E7=A6=81=E7=94=A8=20tcmalloc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/CMakeLists.txt | 1 - vendor/CMakeLists.txt | 26 +++++++++++++------------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/platform/CMakeLists.txt b/platform/CMakeLists.txt index f625bad..cd9f472 100644 --- a/platform/CMakeLists.txt +++ b/platform/CMakeLists.txt @@ -23,7 +23,6 @@ target_link_libraries(tfe pthread dl hiredis-static MESA_htable wiredcfg MESA_field_stat - gperftools-static breakpad_mini ${SYSTEMD_LIBRARIES}) diff --git a/vendor/CMakeLists.txt b/vendor/CMakeLists.txt index 4923d2b..350c382 100644 --- a/vendor/CMakeLists.txt +++ b/vendor/CMakeLists.txt @@ -336,18 +336,18 @@ set_property(TARGET brotlienc-static PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${IN target_link_libraries(brotlienc-static INTERFACE brotlicommon-static) ### gperftools -ExternalProject_Add(gperftools - PREFIX gperftools - URL ${CMAKE_CURRENT_SOURCE_DIR}/gperftools-2.8.tar.gz - URL_MD5 ea61ad1e886f53e4069873ce52cae7df - PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_LIST_DIR}/patch/gperftools-fix_too_small_heap_profile_buffer_size.patch - CONFIGURE_COMMAND ./configure --prefix= --disable-shared - BUILD_IN_SOURCE 1) +#ExternalProject_Add(gperftools +# PREFIX gperftools +# URL ${CMAKE_CURRENT_SOURCE_DIR}/gperftools-2.8.tar.gz +# URL_MD5 ea61ad1e886f53e4069873ce52cae7df +# PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_LIST_DIR}/patch/gperftools-fix_too_small_heap_profile_buffer_size.patch +# CONFIGURE_COMMAND ./configure --prefix= --disable-shared +# BUILD_IN_SOURCE 1) -ExternalProject_Get_Property(gperftools INSTALL_DIR) -file(MAKE_DIRECTORY ${INSTALL_DIR}/include) +#ExternalProject_Get_Property(gperftools INSTALL_DIR) +#file(MAKE_DIRECTORY ${INSTALL_DIR}/include) -add_library(gperftools-static STATIC IMPORTED GLOBAL) -add_dependencies(gperftools-static gperftools) -set_property(TARGET gperftools-static PROPERTY IMPORTED_LOCATION ${INSTALL_DIR}/lib/libtcmalloc.a) -set_property(TARGET gperftools-static PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/include) \ No newline at end of file +#add_library(gperftools-static STATIC IMPORTED GLOBAL) +#add_dependencies(gperftools-static gperftools) +#set_property(TARGET gperftools-static PROPERTY IMPORTED_LOCATION ${INSTALL_DIR}/lib/libtcmalloc.a) +#set_property(TARGET gperftools-static PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/include) \ No newline at end of file