simplify heap checker building default to be Linux-only
This also fixes cmake and freebsd where previously check for freebsd wasn't working.
This commit is contained in:
parent
b58cbd2e23
commit
b7e47a77c0
|
@ -21,7 +21,7 @@ set(TCMALLOC_AND_PROFILER_SO_VERSION 10.5.6)
|
|||
# target system supports.
|
||||
set(DEFAULT_BUILD_CPU_PROFILER ON)
|
||||
set(DEFAULT_BUILD_HEAP_PROFILER ON)
|
||||
set(DEFAULT_BUILD_HEAP_CHECKER ON)
|
||||
set(DEFAULT_BUILD_HEAP_CHECKER OFF)
|
||||
set(DEFAULT_BUILD_DEBUGALLOC ON)
|
||||
set(DEFAULT_BUILD_MINIMAL OFF)
|
||||
|
||||
|
@ -35,12 +35,12 @@ if(MINGW OR MSVC)
|
|||
set(DEFAULT_BUILD_DEBUGALLOC OFF)
|
||||
set(NEED_NANOSLEEP OFF)
|
||||
elseif(CYGWIN)
|
||||
set(DEFAULT_BUILD_HEAP_CHECKER OFF)
|
||||
set(DEFAULT_BUILD_CPU_PROFILER OFF)
|
||||
elseif(HOST MATCHES "freebsd")
|
||||
set(DEFAULT_BUILD_HEAP_CHECKER OFF)
|
||||
elseif(APPLE)
|
||||
set(DEFAULT_BUILD_HEAP_CHECKER OFF)
|
||||
endif()
|
||||
|
||||
# Heap checker is Linux-only (and deprecated).
|
||||
if(CMAKE_SYSTEM MATCHES Linux)
|
||||
set(DEFAULT_BUILD_HEAP_CHECKER ON)
|
||||
endif()
|
||||
|
||||
include(CheckCCompilerFlag)
|
||||
|
|
|
@ -42,7 +42,8 @@ AX_GENERATE_CHANGELOG
|
|||
# target system supports.
|
||||
default_enable_cpu_profiler=yes
|
||||
default_enable_heap_profiler=yes
|
||||
default_enable_heap_checker=yes
|
||||
# heap checker is in practice Linux-only.
|
||||
default_enable_heap_checker=no
|
||||
default_enable_debugalloc=yes
|
||||
default_enable_minimal=no
|
||||
default_tcmalloc_alignment=16
|
||||
|
@ -50,9 +51,8 @@ need_nanosleep=yes # Used later, to decide if to run ACX_NANOSLEEP
|
|||
case "$host" in
|
||||
*-mingw*) default_enable_minimal=yes; default_enable_debugalloc=no;
|
||||
need_nanosleep=no;;
|
||||
*-cygwin*) default_enable_heap_checker=no; default_enable_cpu_profiler=no;;
|
||||
*-freebsd*) default_enable_heap_checker=no;;
|
||||
*-darwin*) default_enable_heap_checker=no;;
|
||||
*-cygwin*) default_enable_cpu_profiler=no;;
|
||||
*-linux*) default_enable_heap_checker=yes;;
|
||||
esac
|
||||
|
||||
# Currently only backtrace works on s390 and OSX.
|
||||
|
|
Loading…
Reference in New Issue