build: add 'undefined' sanitizer for debug
This commit is contained in:
parent
f46c090c72
commit
39caa4c365
@ -149,7 +149,9 @@ AS_IF([test "x$ac_cv_search_clock_gettime" == "x-*"], [
|
|||||||
AS_IF([test "x$enable_debugging" = "xyes"], [
|
AS_IF([test "x$enable_debugging" = "xyes"], [
|
||||||
AS_IF([test "x$enable_sanitizer" = "xyes"], [
|
AS_IF([test "x$enable_sanitizer" = "xyes"], [
|
||||||
AX_APPEND_COMPILE_FLAGS([-fsanitize=address], [], [-Werror])
|
AX_APPEND_COMPILE_FLAGS([-fsanitize=address], [], [-Werror])
|
||||||
|
AX_APPEND_COMPILE_FLAGS([-fsanitize=undefined], [], [-Werror])
|
||||||
AX_APPEND_LINK_FLAGS([-fsanitize=address], [], [-Werror])
|
AX_APPEND_LINK_FLAGS([-fsanitize=address], [], [-Werror])
|
||||||
|
AX_APPEND_LINK_FLAGS([-fsanitize=undefined], [], [-Werror])
|
||||||
])
|
])
|
||||||
|
|
||||||
AX_APPEND_COMPILE_FLAGS([-ggdb], [], [-Werror])
|
AX_APPEND_COMPILE_FLAGS([-ggdb], [], [-Werror])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user