Merge pull request #308114 from amarshall/rpackages-parallel-build
rPackages: Support building in parallel, do so by default
This commit is contained in:
commit
559d572f72
1 changed files with 3 additions and 0 deletions
|
@ -10,8 +10,11 @@ stdenv.mkDerivation ({
|
|||
env.NIX_CFLAGS_COMPILE =
|
||||
lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
export MAKEFLAGS+="''${enableParallelBuilding:+-j$NIX_BUILD_CORES}"
|
||||
export R_LIBS_SITE="$R_LIBS_SITE''${R_LIBS_SITE:+:}$out/library"
|
||||
runHook postConfigure
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue