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

[email protected] (Leon Timmermans) Wed, 22 May 2013 22:42:04 +0200
Newsgroups perl.module.build
Message-ID <CAHhgV8i=q2aLO-RJX3Q4PW9uryc1ddCVhyDP=1v_M=s_HBMzxw@mail.gmail.com>
On Tue, May 21, 2013 at 3:29 AM, Linda A. Walsh <[email protected]> wr=
ote:
> 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, =C2=AB./Build test=C2=BB/=C2=ABmake test=C2=BB does support paral=
lelization
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