aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-01-26 13:07:30 +0100
committerGitHub <noreply@github.com>2017-01-26 13:07:30 +0100
commitf78982620a48dc76bbd3635300650d06ced24aab (patch)
treefea23c27116eb20f4b5861ace3046f2c2edcfb4e
parent25427ae892ccbb537a718c8abfbd4c79d9f94091 (diff)
downloadrneovim-f78982620a48dc76bbd3635300650d06ced24aab.tar.gz
rneovim-f78982620a48dc76bbd3635300650d06ced24aab.tar.bz2
rneovim-f78982620a48dc76bbd3635300650d06ced24aab.zip
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.
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 65e4bbd672..7d978727bd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)