Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parallelise building
dynlink_compilerlibs
This performs two weird tricks that together knock ~30 seconds off the build time in dev mode and ~40 seconds outside dev mode: - To build `dynlink_compilerlibs`, copy both `parser.ml` and `parser.mli` from the main compiler source. Copying just `parser.ml` means that the native build depends on the .cmi produced by the bytecode build. - Explicitly add the .cma and .cmxa files for `dynlink` and `flambda2_from_lambda` to the `install` alias. It's not clear why this helps, but it appears that Dune is being excessively lazy in discovering installable targets, waiting until `ocamlcommon` is built before it even considers any targets in these libraries, including those that don't depend on `ocamlcommon` (and take quite a while to build). Redundantly adding targets to `install` seems to be the nudge Dune needs.
- Loading branch information