develooper Front page | | Postings from May 2013

Re: running Build... how to run parallel?

Thread Previous | Thread Next
Leon Timmermans
May 22, 2013 20:42
Re: running Build... how to run parallel?
Message ID:
On Tue, May 21, 2013 at 3:29 AM, Linda A. Walsh <> wrote:
> In the pod for Module::Build, it says:
>      I don't like the core idea of "MakeMaker", namely that "make"
>      should be involved in the build process.  ...
> But the benefit of using makefiles is readily apparent for those
> Perl modules that use MakeMaker... they can automatically make
> use of parallel build abilities present on today's computers.
> Module::Build, in re-inventing the dependency and process
> handling of Make seems to have made how to do the equivalent
> of "make -j" obtuse or opaque.
> Is there a hidden switch for this?  I don't see anything documented
> in Module::Build.  Certainly is a good reason for re-use of standard
> components...  as they are improved, build procedures can usually,
> automatically benefit...
> Am I missing a feature somewhere?

Module::Build does not have a feature. This is generally considered
unfortunate, but can not be changed anymore. A future replacement of
Module::Build might support it though. Though to be honest, MakeMaker
write out makefiles that are not particularly parallelizable, and even
if it did most build-times aren't long enough to benefit much from

Actually, «./Build test»/«make test» does support parallelization
using the HARNESS_OPTIONS environmental variable, though this an
undocumented (AFAIK) implementation detail. I would rather like to add
a more comprehensive option for this TBH.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About