Skip to content

Commit

Permalink
cabal: enable multi-threaded builds with GHC 7.8.x or later
Browse files Browse the repository at this point in the history
  • Loading branch information
peti committed Aug 16, 2014
1 parent 462e067 commit 817c0e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/build-support/cabal/default.nix
Expand Up @@ -210,6 +210,9 @@ assert !enableStaticLibraries -> versionOlder "7.7" ghc.version;
${optionalString (self.enableSharedExecutables && self.stdenv.isDarwin) ''
configureFlags+=" --ghc-option=-optl=-Wl,-headerpad_max_install_names"
''}
${optionalString (versionOlder "7.8" ghc.version) ''
configureFlags+=" --ghc-option=-j$NIX_BUILD_CORES"
''}
echo "configure flags: $extraConfigureFlags $configureFlags"
./Setup configure --verbose --prefix="$out" --libdir='$prefix/lib/$compiler' \
Expand Down

0 comments on commit 817c0e4

Please sign in to comment.