diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-19 15:15:52 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-19 15:15:52 +0000 |
commit | 9ab726cd1d7a5b2d13fd076f300c68084b56713c (patch) | |
tree | f4738684a135ffa5aeea104cb2ad45213ca16c74 | |
parent | fbd2c0e1e3da12793dbf2681feac1244e9ae5485 (diff) | |
download | rspamd-9ab726cd1d7a5b2d13fd076f300c68084b56713c.tar.gz rspamd-9ab726cd1d7a5b2d13fd076f300c68084b56713c.zip |
[Minor] Disable jemalloc on sanitized builds
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | cmake/Sanitizer.cmake | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 49bc44742..39a177310 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -148,7 +148,7 @@ ELSE(ENABLE_LUAJIT MATCHES "ON") ENDIF(NOT LUA_FOUND) ENDIF(ENABLE_LUAJIT MATCHES "ON") -IF(ENABLE_JEMALLOC MATCHES "ON") +IF(ENABLE_JEMALLOC MATCHES "ON" AND NOT SANITIZE) ProcessPackage(JEMALLOC LIBRARY jemalloc_pic jemalloc INCLUDE jemalloc.h INCLUDE_SUFFIXES include/jemalloc ROOT ${JEMALLOC_ROOT_DIR}) SET(WITH_JEMALLOC "1") diff --git a/cmake/Sanitizer.cmake b/cmake/Sanitizer.cmake index 73d72da8d..fc96fec8e 100644 --- a/cmake/Sanitizer.cmake +++ b/cmake/Sanitizer.cmake @@ -11,6 +11,7 @@ endif () if (SANITIZE) if (ENABLE_JEMALLOC MATCHES "ON") message (STATUS "Jemalloc support is useless in case of build with sanitizers") + set (ENABLE_JEMALLOC "OFF") endif () if (SANITIZE STREQUAL "address") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${SAN_FLAGS} -fsanitize=address -fsanitize-address-use-after-scope") |