On Sat, 2014-03-01 at 12:51 +0100, Cyril Brulebois wrote:
> Ben Hutchings <ben@decadent.org.uk> (2014-03-01):
> > dpkg-buildpackage -j does *not* put -j on the debian/rules command line.
> > It sets DEB_BUILD_OPTIONS. This is done precisely so that build daemons
> > can use dpkg-buildpackage -j for everything but it will only result in a
> > parallel make where the maintainer has checked that this works.
>
> FWIW it does exactly that:
> | if (defined $parallel) {
> | $parallel = $build_opts->get("parallel") if $build_opts->has("parallel");
> | $ENV{MAKEFLAGS} ||= '';
> | $ENV{MAKEFLAGS} .= " -j$parallel";
> | $build_opts->set("parallel", $parallel);
> | $build_opts->export();
> | }
Not exactly the same thing, but I agree that it's effectively passing -j
to make. Thanks for correcting my memory on this.
Ben.
--
Ben Hutchings
If at first you don't succeed, you're doing about average.
Attachment:
signature.asc
Description: This is a digitally signed message part