diff options
author | Rui Abreu Ferreira <rap-ep@gmx.com> | 2016-09-10 12:12:09 +0100 |
---|---|---|
committer | Rui Abreu Ferreira <raf-ep@gmx.com> | 2016-09-10 18:43:04 +0100 |
commit | 4c9e5676cd8aa3798452e283dc3927fea76c901c (patch) | |
tree | f9ed0c747082944f99cd8d91f7294313e4184d97 | |
parent | fe06e2a4a076d698e921411608d7a6cbe8877175 (diff) | |
download | rneovim-4c9e5676cd8aa3798452e283dc3927fea76c901c.tar.gz rneovim-4c9e5676cd8aa3798452e283dc3927fea76c901c.tar.bz2 rneovim-4c9e5676cd8aa3798452e283dc3927fea76c901c.zip |
Disable use of jemalloc in OpenBSD
Works around #3434, turning off the use of jemalloc in OpenBSD.
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 95601d441a..0a6a9accea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) |