[opam-devel] Parallel builds
thomas at ocamlpro.com
Mon Jul 8 10:25:13 BST 2013
> Many packages seem to use Oasis for building, but I couldn't find any
> package specification that calls the build process in a way that
> allows for parallel builds.
> E.g. I might want to specify this in an OPAM package (i.e. use up to 4 CPUs):
> ["ocaml" "setup.ml" "-build" "-j 4"]
> Does anybody have objections to parallel builds? Any suggestions
> concerning their number? I think it should generally work fine and
> give a typical speedup of maybe around 20%.
Is there any way to specify that "j" argument on the command-line ? That would be quite handy if the is the case, as you could simply do: `OASISJOBS=4 opam install foo`
I feel not very satisfactory to hard-code the number of jobs in the OPAM file, though.
More information about the opam-devel