We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f818ca commit d53b678Copy full SHA for d53b678
mypyc/codegen/emitmodule.py
@@ -39,6 +39,7 @@
39
)
40
from mypyc.codegen.literals import Literals
41
from mypyc.common import (
42
+ IS_FREE_THREADED,
43
MODULE_PREFIX,
44
PREFIX,
45
RUNTIME_C_FILES,
@@ -514,7 +515,9 @@ def __init__(
514
515
self.use_shared_lib = group_name is not None
516
self.compiler_options = compiler_options
517
self.multi_file = compiler_options.multi_file
- self.multi_phase_init = True
518
+ # Multi-phase init is needed to enable free-threading. In the future we'll
519
+ # probably want to enable it always, but we'll wait until it's stable.
520
+ self.multi_phase_init = IS_FREE_THREADED
521
522
@property
523
def group_suffix(self) -> str:
0 commit comments