[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>
M
Miss Islington (bot) committed
04d07964f2ccb3169ab389e7cc36c7cf59deaf2c
Parent: 653ed76
Committed by GitHub <noreply@github.com>
on 4/10/2024, 2:38:10 PM