Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit79eec66

Browse files
authored
gh-112536: Define_Py_THREAD_SANITIZER on GCC when TSan is enabled (#117702)
The `__has_feature(thread_sanitizer)` is a Clang-ism. Although newversions of GCC implement `__has_feature`, the `defined(__has_feature)`check still fails on GCC so we don't use that code path.
1 parentef41182 commit79eec66

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎Include/pyport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,9 @@ extern "C" {
572572
#if defined(__SANITIZE_ADDRESS__)
573573
#define_Py_ADDRESS_SANITIZER
574574
#endif
575+
#if defined(__SANITIZE_THREAD__)
576+
#define_Py_THREAD_SANITIZER
577+
#endif
575578
#endif
576579

577580

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp