mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-115582: Make default PC/pyconfig.h work for free-threaded builds with manual /DPy_GIL_DISABLED (GH-115850)
This commit is contained in:
parent
72cff8d8e5
commit
37a13b9413
3 changed files with 10 additions and 2 deletions
|
|
@ -95,7 +95,12 @@ WIN32 is still required for the locale module.
|
|||
#endif /* Py_BUILD_CORE || Py_BUILD_CORE_BUILTIN || Py_BUILD_CORE_MODULE */
|
||||
|
||||
/* Define to 1 if you want to disable the GIL */
|
||||
#undef Py_GIL_DISABLED
|
||||
/* Uncomment the definition for free-threaded builds, or define it manually
|
||||
* when compiling extension modules. Note that we test with #ifdef, so
|
||||
* defining as 0 will still disable the GIL. */
|
||||
#ifndef Py_GIL_DISABLED
|
||||
/* #define Py_GIL_DISABLED 1 */
|
||||
#endif
|
||||
|
||||
/* Compiler specific defines */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue