]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-112536: Define `_Py_THREAD_SANITIZER` on GCC when TSan is enabled (GH-11770...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 10 Apr 2024 14:38:10 +0000 (16:38 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Apr 2024 14:38:10 +0000 (14:38 +0000)
commit04d07964f2ccb3169ab389e7cc36c7cf59deaf2c
tree5229adbf1e96c1df8f79550a70a82b09b1c6d996
parent653ed76442d2988e587f4da1fc1cf1bd2bb51fbb
[3.12] gh-112536: Define `_Py_THREAD_SANITIZER` on GCC when TSan is enabled (GH-117702) (#117713)

gh-112536: Define `_Py_THREAD_SANITIZER` on GCC when TSan is enabled (GH-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.
(cherry picked from commit 79eec66e3dc277ea6ebad8c0b33756eea6a7ab3b)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Include/pyport.h