]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-112536: Define `_Py_THREAD_SANITIZER` on GCC when TSan is enabled (#117702)
authorSam Gross <colesbury@gmail.com>
Wed, 10 Apr 2024 14:20:05 +0000 (10:20 -0400)
committerGitHub <noreply@github.com>
Wed, 10 Apr 2024 14:20:05 +0000 (10:20 -0400)
commit79eec66e3dc277ea6ebad8c0b33756eea6a7ab3b
tree412bb312bdce75fda19bb9145694711cbe8b3e90
parentef4118222b6d5f4532a2f1e234ba03955348d2a1
gh-112536: Define `_Py_THREAD_SANITIZER` on GCC when TSan is enabled (#117702)

The `__has_feature(thread_sanitizer)` is a Clang-ism. Although new
versions of GCC implement `__has_feature`, the `defined(__has_feature)`
check still fails on GCC so we don't use that code path.
Include/pyport.h