]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: partial revert of BOOST_USE_VALGRIND when ALLOCATOR=libc 39263/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 3 Feb 2021 14:46:33 +0000 (09:46 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 3 Feb 2021 14:46:42 +0000 (09:46 -0500)
the WITH_SYSTEM_BOOST binaries are not built with BOOST_USE_VALGRIND, so
it probably isn't safe to define for the headers only

this flag is needed for teuthology testing, and the shaman builds use
WITH_SYSTEM_BOOST=OFF. so the better fix is to enable WITH_BOOST_VALGRIND
so BuildBoost.cmake will build the libraries with valgrind support and add
-DBOOST_USE_VALGRIND to the necessary targets

this change was merged in https://github.com/ceph/ceph-build/pull/1736

Fixes: https://tracker.ceph.com/issues/48963
Signed-off-by: Casey Bodley <cbodley@redhat.com>
CMakeLists.txt

index c500f31cd7de28063f37ee97abf5ee6e2808a401..985cee4b204f1e16b664cd125c562f9c78fd7b05 100644 (file)
@@ -350,13 +350,6 @@ else(ALLOCATOR)
   endif(gperftools_FOUND)
 endif(ALLOCATOR)
 
-if(${ALLOCATOR} STREQUAL "libc" AND WITH_SYSTEM_BOOST)
-  # valgrind can only work with libc allocator
-  # if system boost is not used, valgrind use should
-  #   be indicated via the WITH_BOOST_VALGRIND parameter
-  add_definitions(-DBOOST_USE_VALGRIND)
-endif()
-
 # Mingw generates incorrect entry points when using "-pie".
 if(WIN32 OR (HAVE_LIBTCMALLOC AND WITH_STATIC_LIBSTDCXX))
   set(EXE_LINKER_USE_PIE FALSE)