Skip to content

Commit e6d56c1

Browse files
committed
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 <[email protected]>
1 parent 7149788 commit e6d56c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ if(NOT ALLOCATOR STREQUAL "libc")
391391
$<$<COMPILE_LANGUAGE:CXX>:-fno-builtin-realloc>
392392
$<$<COMPILE_LANGUAGE:CXX>:-fno-builtin-free>)
393393
endif()
394+
message(STATUS "allocator selected: ${ALLOCATOR}")
394395

395396
# Mingw generates incorrect entry points when using "-pie".
396397
if(WIN32 OR (HAVE_LIBTCMALLOC AND WITH_STATIC_LIBSTDCXX))

0 commit comments

Comments
 (0)