Skip to content

Commit

Permalink
Merge pull request #5618 from qlyoung/fix-san-flags-additive
Browse files Browse the repository at this point in the history
configure.ac: make msan & ubsan flags additive
  • Loading branch information
rzalamena authored Jan 6, 2020
2 parents 9d4433a + 982187a commit f630b45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,14 @@ if test "$enable_memory_sanitizer" = "yes"; then
AC_C_FLAG([-fsanitize=memory -fPIE -pie], [
AC_MSG_ERROR([$CC does not support Memory Sanitizer.])
], [
SAN_FLAGS="-fsanitize=memory -fPIE -pie"
SAN_FLAGS="$SAN_FLAGS -fsanitize=memory -fPIE -pie"
])
fi
if test "$enable_undefined_sanitizer" = "yes"; then
AC_C_FLAG([-fsanitize=undefined], [
AC_MSG_ERROR([$CC does not support UndefinedBehaviorSanitizer.])
], [
SAN_FLAGS="-fsanitize=undefined"
SAN_FLAGS="$SAN_FLAGS -fsanitize=undefined"
])
fi
AC_SUBST([SAN_FLAGS])
Expand Down

0 comments on commit f630b45

Please sign in to comment.