commit 1322915: [Minor] Make sanitizer optional
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Jan 7 15:56:07 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-01-07 15:53:45 +0000
URL: https://github.com/rspamd/rspamd/commit/1322915c15b99c174cb3fba8c7467b1bbac83ced
[Minor] Make sanitizer optional
---
cmake/Toolset.cmake | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cmake/Toolset.cmake b/cmake/Toolset.cmake
index 8539dbe0a..77c87f18a 100644
--- a/cmake/Toolset.cmake
+++ b/cmake/Toolset.cmake
@@ -1,4 +1,5 @@
option (ENABLE_FAST_MATH "Build rspamd with fast math compiler flag [default: ON]" ON)
+option (ENABLE_ANALYZER "Build rspamd with static analyzer [default: OFF]" OFF)
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
SET (COMPILER_GCC 1)
@@ -138,7 +139,7 @@ if (COMPILER_GCC)
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 ${COMPILER_FAST_MATH} -fomit-frame-pointer")
if (ENABLE_FULL_DEBUG MATCHES "ON")
- if (COMPILER_GCC)
+ if (ENABLE_ANALYZER MATCHES "ON")
# Check support of -fanalyzer
CHECK_C_COMPILER_FLAG(-fanalyzer SUPPORT_FANALYZER)
if (SUPPORT_FANALYZER)
More information about the Commits
mailing list