[Omake] State of parallel builds
Aleksey Nogin
nogin at metaprl.org
Tue Jun 12 17:16:48 PDT 2007
On 12.06.2007 12:01, Markus Mottl wrote:
> I'd like to know whether parallel builds (omake -j ...) are considered
> ready for use in 0.9.8.4.
Yes, definitely - those were fully supported (and, in fact, highly
recommended) since the very early days of OMake. I have "-j n" (for n =
2* #of CPUs) in my OMAKEFLAGS environment variable and only use parallel
builds.
> I do run into problems with OCaml
> (inconsistent assumptions...) when using this option, but I am not
> sure whether this is a problem with our build rules or with parallel
> builds in general.
The "inconsistent assumptions" indicates that you have incomplete
dependencies somewhere. This is actually an extra reason to prefer the
parallelized builds - the incomplete dependencies problems become a lot
more obvious and end up being fixed quicker.
Starting with 0.9.8.2 I would recommend turning on the
OCAMLDEP_MODULES_ENABLED (this is the default starting with 0.9.8.4) and
seeing whether this helps any. Note that with OCAMLDEP_MODULES_ENABLED,
the *OCamlGeneratedFiles functions are a no-op (because in most
situations they are no longer needed), so if you rely on them to set
some of the dependencies that are missed by the dependency scanners, you
may need to do something else.
Aleksey
More information about the Omake
mailing list