[Nix-dev] Re: make -jx within builds?
Marc Weber
marco-oweber at gmx.de
Sat May 29 21:29:33 CEST 2010
I'm about implementing this feature.
the nproc code seems rather complex.
So my strategy now is: Keep things simple: If num_cores is not set in
nix config use try using NUM_CORES from env which can be set by nproc in
the upstart script easily.
I don't think we have to introduce yet another name such as
buildInParallel = false. So I allow setting NUM_CORES to 1 only in a
derivation:
mkDerivation {
NUM_CORES = 1;
}
Ludo, thank you for this nproc tip !
For now I ignore the fact that you can put cores on and offline..
I consider this feature being experimental anyway.
Marc Weber
More information about the nix-dev
mailing list