mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-112536: Add support for thread sanitizer (TSAN) (gh-112648)
This commit is contained in:
parent
f46987b828
commit
88cb972000
8 changed files with 81 additions and 10 deletions
18
configure.ac
18
configure.ac
|
|
@ -3067,6 +3067,24 @@ AC_MSG_RESULT([no])
|
|||
with_ubsan="no"
|
||||
])
|
||||
|
||||
AC_MSG_CHECKING([for --with-thread-sanitizer])
|
||||
AC_ARG_WITH(
|
||||
[thread_sanitizer],
|
||||
[AS_HELP_STRING(
|
||||
[--with-thread-sanitizer],
|
||||
[enable ThreadSanitizer data race detector, 'tsan' (default is no)]
|
||||
)],
|
||||
[
|
||||
AC_MSG_RESULT([$withval])
|
||||
BASECFLAGS="-fsanitize=thread $BASECFLAGS"
|
||||
LDFLAGS="-fsanitize=thread $LDFLAGS"
|
||||
with_tsan="yes"
|
||||
],
|
||||
[
|
||||
AC_MSG_RESULT([no])
|
||||
with_tsan="no"
|
||||
])
|
||||
|
||||
# Set info about shared libraries.
|
||||
AC_SUBST([SHLIB_SUFFIX])
|
||||
AC_SUBST([LDSHARED])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue