You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We added support for multi-threaded codegen in #14748 but never enabled it in the default build configuration. It's expected to be more efficient than the current fork-based parallelization. And it works on Windows.
I suppose we could also consider passing `-Dexecution_context`? But the `mt_codegen` code probably needs an adjustment for that (at least resize the default context to `n_threads`.
Compiler versions before 1.8 are broken with `-Dpreview_mt`, so we need to disable it for older versions.
Copy file name to clipboardExpand all lines: Makefile
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ check ?= ## Enable only check when running format
37
37
order ?=random ## Enable order for spec execution (values: "default" | "random" | seed number)
38
38
deref_symlinks ?= ## Dereference symbolic links for `make install`
39
39
docs_sanitizer ?= ## Enable sanitization for documentation generation
40
+
sequential_codegen ?=$(if$(filter 0,$(supports_preview_mt)),true,)## Enforce sequential codegen in compiler builds. Base compiler before Crystal 1.8 cannot build with `-Dpreview_mt`
0 commit comments