develooper Front page | perl.module.build | Postings from May 2013

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

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
May 22, 2013 20:42
Subject:
Re: running Build... how to run parallel?
Message ID:
CAHhgV8i=q2aLO-RJX3Q4PW9uryc1ddCVhyDP=1v_M=s_HBMzxw@mail.gmail.com
On Tue, May 21, 2013 at 3:29 AM, Linda A. Walsh <perl-diddler@tlinx.org> 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
them.

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.

Leon

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About