diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-03-30 12:18:22 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-03-30 12:18:22 +0100 |
commit | fd787a950879f0ea0ff88194ab70e39e9e4d16cf (patch) | |
tree | 9c72572d5124110948ed752b12d2fda9039e1dc9 /cmake/Sanitizer.cmake | |
parent | 66a31060180ad577ce45d1290190966dd36f864a (diff) | |
download | rspamd-fd787a950879f0ea0ff88194ab70e39e9e4d16cf.tar.gz rspamd-fd787a950879f0ea0ff88194ab70e39e9e4d16cf.zip |
[Minor] Slghtly improve cmake reporting + use -O0 with full debug
Diffstat (limited to 'cmake/Sanitizer.cmake')
-rw-r--r-- | cmake/Sanitizer.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/Sanitizer.cmake b/cmake/Sanitizer.cmake index fc96fec8e..f955024e6 100644 --- a/cmake/Sanitizer.cmake +++ b/cmake/Sanitizer.cmake @@ -49,4 +49,8 @@ if (SANITIZE) message (FATAL_ERROR "Unknown sanitizer type: ${SANITIZE}") endif () message (STATUS "Add sanitizer: ${SANITIZE}") + # Disable sanitizing on make stage e.g. for snowball compiler + set (ENV{ASAN_OPTIONS} "detect_leaks=0") + message (STATUS "Sanitizer CFLAGS: ${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE_UC}}") + message (STATUS "Sanitizer CXXFLAGS: ${CMAKE_CXX_FLAGS} ${CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE_UC}}") endif()
\ No newline at end of file |