mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-28 18:38:48 +08:00
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:
parent
c816797879
commit
bed14e60c2
@ -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)
|
||||
|
@ -9,6 +9,7 @@
|
||||
#cmakedefine ENABLE_GPROF
|
||||
#cmakedefine ENABLE_GCOV
|
||||
#cmakedefine ENABLE_ASAN
|
||||
#cmakedefine ENABLE_UBSAN
|
||||
#cmakedefine MDBX_FORCE_ASSERTIONS
|
||||
|
||||
/* Common */
|
||||
|
Loading…
x
Reference in New Issue
Block a user