mirror of
https://github.com/neovim/neovim.git
synced 2025-11-21 09:36:29 +00:00
Disable use of jemalloc in OpenBSD
Works around #3434, turning off the use of jemalloc in OpenBSD.
This commit is contained in:
committed by
Rui Abreu Ferreira
parent
fe06e2a4a0
commit
4c9e5676cd
@@ -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.")
|
||||
endif()
|
||||
|
||||
option(ENABLE_JEMALLOC "enable jemalloc" ON)
|
||||
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)
|
||||
endif()
|
||||
|
||||
if (ENABLE_JEMALLOC)
|
||||
if(CLANG_ASAN_UBSAN OR CLANG_MSAN OR CLANG_TSAN)
|
||||
|
||||
Reference in New Issue
Block a user