File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed
Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change 8383// locking needed in for free-threaded interpreters builds.
8484# define Py_GIL_DISABLED
8585# endif
86- # if defined(_Py_IS_TESTCEXT)
87- // When compiling for abi3t, contents of Python.h should not depend
88- // on Py_GIL_DISABLED.
89- // We ask GCC to error if it sees the macro from this point on.
90- // Since users are free to the macro, and there's no way to undo the poisoning
91- // at the end of Python.h, we only do this in a test module.
92- # ifdef __GNUC__
93- # undef Py_GIL_DISABLED
94- # pragma GCC poison Py_GIL_DISABLED
95- # endif
96- # endif
9786#endif
9887
9988
Original file line number Diff line number Diff line change 1818 # The purpose of test_cext extension is to check that building a C
1919 # extension using the Python C API does not emit C compiler warnings.
2020 '-Werror' ,
21- # Enable extra checks for header files, which:
22- # - need to be enabled somewhere inside Python headers (rather than
23- # before including Python.h)
24- # - should not be checked for user code
25- '-D_Py_IS_TESTCEXT' ,
2621 ]
2722
2823 # C compiler flags for GCC and clang
You can’t perform that action at this time.
0 commit comments