[Nix-dev] Re: make -jx within builds?

Marc Weber marco-oweber at gmx.de
Mon May 31 15:09:46 CEST 2010


Hi list.

Excerpts from Eelco Dolstra's message of Mon May 31 14:27:19 +0200 2010:
> On 05/29/2010 11:39 PM, Marc Weber wrote:
> > Does it even make sense to ask nix to add -j $NUM_CORES -l $NUM_CORES to
> > makeFlags if NUM_CORES is > 1 ?
> No, because Nix should be agnostic with respect to the build system used in the
> derivation.  If you start down this path, you'll also need to add environment
> variables for parallelism in cmake, ant, ...

I agree. So I'll repost my patch passing NUM_CORES only and keep the
current patch for testing purposes only.

Should we create a new branch for this which can be build by hydra to
see what would break - and which will add these flags to the builder?

We then can implement opt-out for bouth: build and install target easily

Marc Weber



More information about the nix-dev mailing list