mdbx-cmake: add -fsanitize-undefined-trap-on-error to compile flags and ENABLE_UBSAN to config.h.

Change-Id: Ic18c0d59ccf32f9783a44de456893fbc8a0a7d32
This commit is contained in:
Leonid Yuriev 2021-01-20 23:36:13 +03:00
parent c816797879
commit bed14e60c2
2 changed files with 2 additions and 1 deletions

View File

@ -653,7 +653,7 @@ macro(setup_compile_flags)
endif()
if(ENABLE_UBSAN)
add_compile_flags("C;CXX" "-fsanitize=undefined")
add_compile_flags("C;CXX" "-fsanitize=undefined" "-fsanitize-undefined-trap-on-error")
endif()
if(ENABLE_GCOV)

View File

@ -9,6 +9,7 @@
#cmakedefine ENABLE_GPROF
#cmakedefine ENABLE_GCOV
#cmakedefine ENABLE_ASAN
#cmakedefine ENABLE_UBSAN
#cmakedefine MDBX_FORCE_ASSERTIONS
/* Common */