mirror of
https://github.com/neovim/neovim.git
synced 2025-12-11 00:52:44 +00:00
Merge pull request #3515 from Tranquility/make_jemalloc_optional
Make jemalloc optional
This commit is contained in:
@@ -260,12 +260,16 @@ 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(CLANG_ASAN_UBSAN OR CLANG_MSAN OR CLANG_TSAN)
|
option(ENABLE_JEMALLOC "enable jemalloc" OFF)
|
||||||
message(STATUS "Sanitizers have been enabled; don't use jemalloc.")
|
|
||||||
else()
|
if (ENABLE_JEMALLOC)
|
||||||
find_package(JeMalloc)
|
if(CLANG_ASAN_UBSAN OR CLANG_MSAN OR CLANG_TSAN)
|
||||||
if(JEMALLOC_FOUND)
|
message(STATUS "Sanitizers have been enabled; don't use jemalloc.")
|
||||||
include_directories(SYSTEM ${JEMALLOC_INCLUDE_DIRS})
|
else()
|
||||||
|
find_package(JeMalloc)
|
||||||
|
if(JEMALLOC_FOUND)
|
||||||
|
include_directories(SYSTEM ${JEMALLOC_INCLUDE_DIRS})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user