commit 9be5ac3: [Minor] Allow ubsan usage

Vsevolod Stakhov vsevolod at highsecure.ru
Sat Dec 4 14:21:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-12-04 14:12:39 +0000
URL: https://github.com/rspamd/rspamd/commit/9be5ac33b5e08734db941f811267dd396b4b9426

[Minor] Allow ubsan usage

---
 cmake/Sanitizer.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/Sanitizer.cmake b/cmake/Sanitizer.cmake
index 4b4df9fae..74d6a4b1c 100644
--- a/cmake/Sanitizer.cmake
+++ b/cmake/Sanitizer.cmake
@@ -46,7 +46,7 @@ if (SANITIZE)
             set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libubsan")
             set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libubsan")
         endif ()
-
+    else ()
         message (FATAL_ERROR "Unknown sanitizer type: ${SANITIZE}")
     endif ()
     message (STATUS "Add sanitizer: ${SANITIZE}")


More information about the Commits mailing list