aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-19 15:15:52 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-19 15:15:52 +0000
commit9ab726cd1d7a5b2d13fd076f300c68084b56713c (patch)
treef4738684a135ffa5aeea104cb2ad45213ca16c74 /cmake
parentfbd2c0e1e3da12793dbf2681feac1244e9ae5485 (diff)
downloadrspamd-9ab726cd1d7a5b2d13fd076f300c68084b56713c.tar.gz
rspamd-9ab726cd1d7a5b2d13fd076f300c68084b56713c.zip
[Minor] Disable jemalloc on sanitized builds
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Sanitizer.cmake1
1 files changed, 1 insertions, 0 deletions
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")