Skip to content

Commit

Permalink
Merge pull request #308114 from amarshall/rpackages-parallel-build
Browse files Browse the repository at this point in the history
rPackages: Support building in parallel, do so by default
  • Loading branch information
jbedo authored May 3, 2024
2 parents 369654d + 64c1e6a commit 559d572
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/development/r-modules/generic-builder.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';
Expand Down

0 comments on commit 559d572

Please sign in to comment.