TFE 禁用 tcmalloc
This commit is contained in:
@@ -23,7 +23,6 @@ target_link_libraries(tfe pthread dl
|
|||||||
hiredis-static
|
hiredis-static
|
||||||
MESA_htable wiredcfg
|
MESA_htable wiredcfg
|
||||||
MESA_field_stat
|
MESA_field_stat
|
||||||
gperftools-static
|
|
||||||
breakpad_mini
|
breakpad_mini
|
||||||
${SYSTEMD_LIBRARIES})
|
${SYSTEMD_LIBRARIES})
|
||||||
|
|
||||||
|
|||||||
26
vendor/CMakeLists.txt
vendored
26
vendor/CMakeLists.txt
vendored
@@ -336,18 +336,18 @@ set_property(TARGET brotlienc-static PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${IN
|
|||||||
target_link_libraries(brotlienc-static INTERFACE brotlicommon-static)
|
target_link_libraries(brotlienc-static INTERFACE brotlicommon-static)
|
||||||
|
|
||||||
### gperftools
|
### gperftools
|
||||||
ExternalProject_Add(gperftools
|
#ExternalProject_Add(gperftools
|
||||||
PREFIX gperftools
|
# PREFIX gperftools
|
||||||
URL ${CMAKE_CURRENT_SOURCE_DIR}/gperftools-2.8.tar.gz
|
# URL ${CMAKE_CURRENT_SOURCE_DIR}/gperftools-2.8.tar.gz
|
||||||
URL_MD5 ea61ad1e886f53e4069873ce52cae7df
|
# URL_MD5 ea61ad1e886f53e4069873ce52cae7df
|
||||||
PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_LIST_DIR}/patch/gperftools-fix_too_small_heap_profile_buffer_size.patch
|
# 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
|
# CONFIGURE_COMMAND ./configure --prefix=<INSTALL_DIR> --disable-shared
|
||||||
BUILD_IN_SOURCE 1)
|
# BUILD_IN_SOURCE 1)
|
||||||
|
|
||||||
ExternalProject_Get_Property(gperftools INSTALL_DIR)
|
#ExternalProject_Get_Property(gperftools INSTALL_DIR)
|
||||||
file(MAKE_DIRECTORY ${INSTALL_DIR}/include)
|
#file(MAKE_DIRECTORY ${INSTALL_DIR}/include)
|
||||||
|
|
||||||
add_library(gperftools-static STATIC IMPORTED GLOBAL)
|
#add_library(gperftools-static STATIC IMPORTED GLOBAL)
|
||||||
add_dependencies(gperftools-static gperftools)
|
#add_dependencies(gperftools-static gperftools)
|
||||||
set_property(TARGET gperftools-static PROPERTY IMPORTED_LOCATION ${INSTALL_DIR}/lib/libtcmalloc.a)
|
#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)
|
#set_property(TARGET gperftools-static PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${INSTALL_DIR}/include)
|
||||||
Reference in New Issue
Block a user