Disable use of jemalloc in OpenBSD

Works around #3434, turning off the use of jemalloc in OpenBSD.
This commit is contained in:
Rui Abreu Ferreira
2016-09-10 12:12:09 +01:00
committed by Rui Abreu Ferreira
parent fe06e2a4a0
commit 4c9e5676cd

View File

@@ -328,7 +328,12 @@ if((CLANG_ASAN_UBSAN OR CLANG_MSAN OR CLANG_TSAN) AND NOT CMAKE_C_COMPILER_ID MA
message(FATAL_ERROR "Sanitizers are only supported for Clang.") message(FATAL_ERROR "Sanitizers are only supported for Clang.")
endif() endif()
if(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
message(STATUS "detected OpenBSD; disabled jemalloc. #5318")
option(ENABLE_JEMALLOC "enable jemalloc" OFF)
else()
option(ENABLE_JEMALLOC "enable jemalloc" ON) option(ENABLE_JEMALLOC "enable jemalloc" ON)
endif()
if (ENABLE_JEMALLOC) if (ENABLE_JEMALLOC)
if(CLANG_ASAN_UBSAN OR CLANG_MSAN OR CLANG_TSAN) if(CLANG_ASAN_UBSAN OR CLANG_MSAN OR CLANG_TSAN)