Skip to content
Snippets Groups Projects
Commit c7b57364 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Do not link GaudiGoogleProfiling against tcmalloc and profiler

See merge request !1282
parents 665950d0 f23ab7a1
No related branches found
No related tags found
1 merge request!1282Do not link GaudiGoogleProfiling against tcmalloc and profiler
Pipeline #3336089 passed
......@@ -48,12 +48,15 @@ endif()
# Google PerfTools profiler
#-----------------------------------
if(GAUDI_USE_GPERFTOOLS)
# Note we do not link against libtcmalloc.so or libprofiler.so as they have to be
# preloaded (see next comment)
gaudi_add_module(GaudiGoogleProfiling
SOURCES src/component/google/GoogleAuditor.cpp
LINK GaudiKernel
GaudiAlgLib
ZLIB::ZLIB
gperftools::gperftools)
ZLIB::ZLIB)
# but we still need to add the include directories to the search path
target_include_directories(GaudiGoogleProfiling PRIVATE ${GPERFTOOLS_INCLUDE_DIRS})
# Special handling of unresolved symbols in GaudiGoogleProfiling.
# The profilers need to have libtcmalloc.so or libprofiler.so pre-loaded to
......
......@@ -133,7 +133,8 @@ endif()
if(COMMAND __deprecate_var_for_target)
foreach(v IN ITEMS GPERFTOOLS_INCLUDE_DIR
GPERFTOOLS_INCLUDE_DIRS GPERFTOOLS_TCMALLOC_LIBRARY
# GPERFTOOLS_INCLUDE_DIRS
GPERFTOOLS_TCMALLOC_LIBRARY
GPERFTOOLS_TCMALLOC_DEBUG_LIBRARY
GPERFTOOLS_TCMALLOC_MINIMAL_LIBRARY
GPERFTOOLS_TCMALLOC_AND_PROFILER_LIBRARY
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment