mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
configure.ac: fix memory sanitizer test
We should test for `-fsanitize=memory` instead of `-fsanitize=thread` when enabling memory sanitizer. While here, fix the error message. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
This commit is contained in:
parent
6eb3b18a09
commit
65209e4fbf
|
@ -328,8 +328,8 @@ if test "$enable_thread_sanitizer" = "yes"; then
|
|||
])
|
||||
fi
|
||||
if test "$enable_memory_sanitizer" = "yes"; then
|
||||
AC_C_FLAG([-fsanitize=thread -fPIE -pie], [
|
||||
AC_MSG_ERROR([$CC does not support Thread Sanitizer.])
|
||||
AC_C_FLAG([-fsanitize=memory -fPIE -pie], [
|
||||
AC_MSG_ERROR([$CC does not support Memory Sanitizer.])
|
||||
], [
|
||||
SAN_FLAGS="-fsanitize=memory -fPIE -pie"
|
||||
])
|
||||
|
|
Loading…
Reference in a new issue