mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #27336: Fix compilation failures --without-threads
This commit is contained in:
parent
d4b45cb9ca
commit
531396c764
3 changed files with 6 additions and 3 deletions
|
@ -746,9 +746,11 @@ Py_NewInterpreter(void)
|
|||
if (!initialized)
|
||||
Py_FatalError("Py_NewInterpreter: call Py_Initialize first");
|
||||
|
||||
#if WITH_THREAD
|
||||
/* Issue #10915, #15751: The GIL API doesn't work with multiple
|
||||
interpreters: disable PyGILState_Check(). */
|
||||
_PyGILState_check_enabled = 0;
|
||||
#endif
|
||||
|
||||
interp = PyInterpreterState_New();
|
||||
if (interp == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue