on iko/ghcjs-patch-master help sign in
Never build with more than -j4 because of slowdown (#227)
7cbb5f5Yorick
builder/comp-builder.nix+2−1
@@ -182,7 +182,8 @@ stdenv.mkDerivation ({
182
182
183 buildPhase = ''
183 buildPhase = ''
184 runHook preBuild
184 runHook preBuild
185+ # https://gitlab.haskell.org/ghc/ghc/issues/9221
185− $SETUP_HS build -j$NIX_BUILD_CORES ${lib.concatStringsSep " " component.setupBuildFlags}
186+ $SETUP_HS build -j$(($NIX_BUILD_CORES > 4 ? 4 : $NIX_BUILD_CORES)) ${lib.concatStringsSep " " component.setupBuildFlags}
186 runHook postBuild
187 runHook postBuild
187 '';
188 '';
188
189