[commit: ghc] wip/nfs-locking: Limit parallelism of ghc-cabal. (4e96a03)

git at git.haskell.org git at git.haskell.org
Fri Oct 27 00:01:28 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/nfs-locking
Link       : http://ghc.haskell.org/trac/ghc/changeset/4e96a03842279f4822ca2b50a7eed7993a3e815a/ghc

>---------------------------------------------------------------

commit 4e96a03842279f4822ca2b50a7eed7993a3e815a
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Sat Aug 1 14:14:42 2015 +0100

    Limit parallelism of ghc-cabal.


>---------------------------------------------------------------

4e96a03842279f4822ca2b50a7eed7993a3e815a
 src/Rules/Data.hs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Rules/Data.hs b/src/Rules/Data.hs
index d60dbfa..1114c88 100644
--- a/src/Rules/Data.hs
+++ b/src/Rules/Data.hs
@@ -37,7 +37,8 @@ buildPackageData target = do
             -- GhcCabal may run the configure script, so we depend on it
             -- We don't know who built the configure script from configure.ac
             whenM (doesFileExist $ configure <.> "ac") $ need [configure]
-            build $ fullTarget target [cabal] GhcCabal files
+            buildWithResources [(ghcPkg, 1)] $ -- GhcCabal calls ghc-pkg too
+                fullTarget target [cabal] GhcCabal files
             whenM (interpretExpr target registerPackage) .
                 buildWithResources [(ghcPkg, 1)] $
                 fullTarget target [cabal] (GhcPkg stage) files



More information about the ghc-commits mailing list