]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Allow ubsan usage
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 4 Dec 2021 14:12:39 +0000 (14:12 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 4 Dec 2021 14:12:39 +0000 (14:12 +0000)
cmake/Sanitizer.cmake

index 4b4df9fae1eb0fd5627222d4ecd4386da87b1fed..74d6a4b1cd65a8701cccf157599659a6c144aba0 100644 (file)
@@ -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}")