Skip to content

Commit

Permalink
configure: add support for --with-thread-sanitizer
Browse files Browse the repository at this point in the history
  • Loading branch information
colesbury committed Mar 6, 2023
1 parent cefe5df commit dcddbe2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
20 changes: 20 additions & 0 deletions configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3109,6 +3109,17 @@ with_pymalloc="no"
],
[AC_MSG_RESULT(no)])

AC_MSG_CHECKING(for --with-thread-sanitizer)
AC_ARG_WITH(thread_sanitizer,
AS_HELP_STRING([--with-thread-sanitizer],
[enable ThreadSanitizer race detector, 'tsan' (default is no)]),
[
AC_MSG_RESULT($withval)
BASECFLAGS="-fsanitize=thread -fno-omit-frame-pointer -DMI_TSAN=1 $BASECFLAGS"
LDFLAGS="-fsanitize=thread $LDFLAGS"
],
[AC_MSG_RESULT(no)])

AC_MSG_CHECKING(for --with-memory-sanitizer)
AC_ARG_WITH(memory_sanitizer,
AS_HELP_STRING([--with-memory-sanitizer],
Expand Down

0 comments on commit dcddbe2

Please sign in to comment.