mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-29 08:28:49 +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()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_UBSAN)
|
if(ENABLE_UBSAN)
|
||||||
add_compile_flags("C;CXX" "-fsanitize=undefined")
|
add_compile_flags("C;CXX" "-fsanitize=undefined" "-fsanitize-undefined-trap-on-error")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_GCOV)
|
if(ENABLE_GCOV)
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
#cmakedefine ENABLE_GPROF
|
#cmakedefine ENABLE_GPROF
|
||||||
#cmakedefine ENABLE_GCOV
|
#cmakedefine ENABLE_GCOV
|
||||||
#cmakedefine ENABLE_ASAN
|
#cmakedefine ENABLE_ASAN
|
||||||
|
#cmakedefine ENABLE_UBSAN
|
||||||
#cmakedefine MDBX_FORCE_ASSERTIONS
|
#cmakedefine MDBX_FORCE_ASSERTIONS
|
||||||
|
|
||||||
/* Common */
|
/* Common */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user