|
@@ -16,6 +16,15 @@ if(CMAKE_COMPILER_IS_GNUCC)
|
|
|
add_definitions(-std=c99 -Wall -Wextra -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wconversion -Wstrict-prototypes)
|
|
|
endif(CMAKE_COMPILER_IS_GNUCC)
|
|
|
|
|
|
+# Set to debug build if no such choice was made
|
|
|
+if(NOT CMAKE_BUILD_TYPE)
|
|
|
+ set(CMAKE_BUILD_TYPE Debug)
|
|
|
+endif(NOT CMAKE_BUILD_TYPE)
|
|
|
+
|
|
|
+if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
|
+ set(WITH_DEBUG ON)
|
|
|
+endif(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
|
+
|
|
|
if(WITH_SYSTEM_CALLS STREQUAL "mmap")
|
|
|
set(PAGESIZE_ALIGN ON)
|
|
|
if(NOT DEFINED SYS_ALLOC_SIZE)
|
|
@@ -171,6 +180,7 @@ endif(RAW_BLOCKS_TYPE STREQUAL "freelist")
|
|
|
message(STATUS "Have statistics: " ${STATS})
|
|
|
message(STATUS "Requested Size per Block: " ${REQUEST_SIZE_INFO})
|
|
|
message(STATUS "Support for debug functions: " ${WITH_DEBUG})
|
|
|
+message(STATUS "Trace level: " ${TRACE_LEVEL})
|
|
|
message(STATUS "Adaptivity: " ${WITH_ADAPTIVITY})
|
|
|
message(STATUS "Support for realloc(): " ${WITH_REALLOC})
|
|
|
message(STATUS "Support for calloc(): " ${WITH_CALLOC})
|