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

Ludovic Courtès ludo at gnu.org
Fri May 28 17:16:55 CEST 2010


Hi,

Eelco Dolstra <e.dolstra at tudelft.nl> writes:

>   nrCores=$(cat /proc/cpuinfo | grep 'processor.*:' | wc -l)

It would be more portable and more elegant to use Coreutils’ new ‘nproc’
command:

  nrCores=$(nproc)

Thanks,
Ludo’.




More information about the nix-dev mailing list