]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
CMakeLists.txt: increase verbosity for selected allocator 51851/head
authorMatan Breizman <mbreizma@redhat.com>
Wed, 31 May 2023 11:06:16 +0000 (11:06 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 31 May 2023 11:12:43 +0000 (11:12 +0000)
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 <mbreizma@redhat.com>
CMakeLists.txt

index 0724fcf5075f643de75651d7ee8a6be64a642021..f5046b930117fbfad45235e0fecae5f584c162c0 100644 (file)
@@ -391,6 +391,7 @@ if(NOT ALLOCATOR STREQUAL "libc")
     $<$<COMPILE_LANGUAGE:CXX>:-fno-builtin-realloc>
     $<$<COMPILE_LANGUAGE:CXX>:-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))