From 483101008a2fc3763adfe0c3afd2d13be6f6dc0f Mon Sep 17 00:00:00 2001 From: Adam Kupczyk Date: Mon, 18 Sep 2017 13:57:14 +0200 Subject: [PATCH] Now giving unsupported allocator gives an error. Signed-off-by: Adam Kupczyk --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1eab353fd9c1..b3fb90f6ebb6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -297,7 +297,7 @@ elseif(ALLOCATOR STREQUAL "libc") set(TCMALLOC_srcs perfglue/disabled_heap_profiler.cc) else() set(TCMALLOC_srcs perfglue/disabled_heap_profiler.cc) - message(WARNING "Possibly incorrect allocator selected:" ${ALLOCATOR}) + message(FATAL_ERROR "Unsupported allocator selected: ${ALLOCATOR}") endif() # tcmalloc heap profiler -- 2.47.3