mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
build: Disable jemalloc for FreeBSD. (#6007)
jemalloc's README states: > jemalloc [is] the FreeBSD libc allocator since 2005. ... Modern jemalloc > releases continue to be integrated back into FreeBSD Since FreeBSD ships with jemalloc in some form, we don't need to require jemalloc there. Less risk, low cost.
This commit is contained in:
parent
25427ae892
commit
f78982620a
@ -342,8 +342,8 @@ 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()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
|
||||
message(STATUS "detected OpenBSD; disabled jemalloc. #5318")
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "OpenBSD|FreeBSD")
|
||||
message(STATUS "detected OpenBSD/FreeBSD; disabled jemalloc. #5318")
|
||||
option(ENABLE_JEMALLOC "enable jemalloc" OFF)
|
||||
else()
|
||||
option(ENABLE_JEMALLOC "enable jemalloc" ON)
|
||||
|
Loading…
Reference in New Issue
Block a user