diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-01-07 15:53:45 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-01-07 15:53:45 +0000 |
commit | 1322915c15b99c174cb3fba8c7467b1bbac83ced (patch) | |
tree | 26d1b01767ba173df1e697c5863d7830aa4023a7 /cmake | |
parent | c555e9e3709a76c46dc1c58eb823f17c9c7b7dc5 (diff) | |
download | rspamd-1322915c15b99c174cb3fba8c7467b1bbac83ced.tar.gz rspamd-1322915c15b99c174cb3fba8c7467b1bbac83ced.zip |
[Minor] Make sanitizer optional
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Toolset.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
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) |