Skip to content

Commit 63e7e4a

Browse files
committed
Declare free-threaded support in MacOS backend extension
1 parent 56ecc15 commit 63e7e4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/_macosx.m

+3
Original file line numberDiff line numberDiff line change
@@ -1895,6 +1895,9 @@ - (void)flagsChanged:(NSEvent *)event
18951895
Py_XDECREF(m);
18961896
return NULL;
18971897
}
1898+
#ifdef Py_GIL_DISABLED
1899+
PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
1900+
#endif
18981901
return m;
18991902
}
19001903

0 commit comments

Comments
 (0)