From: Matan Breizman Date: Wed, 31 May 2023 11:06:16 +0000 (+0000) Subject: CMakeLists.txt: increase verbosity for selected allocator X-Git-Tag: v19.0.0~1089^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e6d56c1effc54006cc9367c7afa6e7d2c64194b6;p=ceph.git CMakeLists.txt: increase verbosity for selected allocator Unless the allocator was set on command line, we will select one based on the following order: ``` "specify memory allocator to use. currently tcmalloc, tcmalloc_minimal, \ jemalloc, and libc is supported. if not specified, will try to find tcmalloc, \ and then jemalloc. If neither of then is found. use the one in libc.") ``` with this change, cmake will explicitly message the compiler selected, otherwise we have no option to identify the one which is being used. Signed-off-by: Matan Breizman --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 0724fcf5075f..f5046b930117 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -391,6 +391,7 @@ if(NOT ALLOCATOR STREQUAL "libc") $<$:-fno-builtin-realloc> $<$:-fno-builtin-free>) endif() +message(STATUS "allocator selected: ${ALLOCATOR}") # Mingw generates incorrect entry points when using "-pie". if(WIN32 OR (HAVE_LIBTCMALLOC AND WITH_STATIC_LIBSTDCXX))