]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: add ALLOCATOR option 23441/head
authorKefu Chai <kchai@redhat.com>
Mon, 6 Aug 2018 09:58:10 +0000 (17:58 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 6 Aug 2018 11:37:43 +0000 (19:37 +0800)
ALLOCATOR is in fact an option..

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt

index af27c909c5f5fe87494207877ecf1af2fc432f7b..3709830d13272d9ab23a8313b9da70ddbc752b37 100644 (file)
@@ -314,6 +314,10 @@ if(WITH_LZ4)
 endif(WITH_LZ4)
 
 #if allocator is set on command line make sure it matches below strings
+set(ALLOCATOR "" CACHE STRING
+  "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.")
 if(ALLOCATOR)
   if(${ALLOCATOR} MATCHES "tcmalloc(_minimal)?")
     if(GPERFTOOLS_USE_STATIC_LIBS)