Skip to content

Commit

Permalink
Merge pull request #17422 from aclamk/fix-cmake-unsupported-allocator
Browse files Browse the repository at this point in the history
cmake: in case of bad "ALLOCATOR" selected issue warning

Reviewed-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Sep 22, 2017
2 parents ab22dd4 + 4831010 commit 032965f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ elseif(ALLOCATOR STREQUAL "jemalloc")
set(TCMALLOC_srcs perfglue/disabled_heap_profiler.cc)
elseif(ALLOCATOR STREQUAL "libc")
set(TCMALLOC_srcs perfglue/disabled_heap_profiler.cc)
else()
set(TCMALLOC_srcs perfglue/disabled_heap_profiler.cc)
message(FATAL_ERROR "Unsupported allocator selected: ${ALLOCATOR}")
endif()

# tcmalloc heap profiler
Expand Down

0 comments on commit 032965f

Please sign in to comment.