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 3ee651d commit dd04f4bCopy full SHA for dd04f4b
py/genlast.py
@@ -59,6 +59,13 @@ def maybe_preprocess(fn):
59
if subprocess.call(["grep", "-lqE", "(MP_QSTR|translate)", fn]) == 0:
60
preprocess(fn)
61
62
+# Documentation states that this has something to do with frozen programs
63
+# on Windows and that the line "can be omitted if the program is not going to
64
+# be frozen to produce an executable". However, this exception is actually
65
+# occurring on Mac mpy-cross builds without this line. Attempt to correct
66
+# the problem.
67
+multiprocessing.freeze_support()
68
+
69
executor = ProcessPoolExecutor(max_workers=multiprocessing.cpu_count() + 1)
70
executor.map(maybe_preprocess, check)
71
executor.map(preprocess, always)
0 commit comments