summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2020-10-27 12:43:48 +0800
committerluwenpeng <[email protected]>2020-10-27 12:43:48 +0800
commit99731ae689ecad65211cd3473056a6e82771f026 (patch)
tree73f9ead038ac7e72532a53409f0b8732416d2923
parent13d2607957cfc082661c3640ef81c9d6ddfd201d (diff)
TFE 禁用 tcmallocv4.3.15-202011
-rw-r--r--platform/CMakeLists.txt1
-rw-r--r--vendor/CMakeLists.txt26
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=<INSTALL_DIR> --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=<INSTALL_DIR> --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