[commit: ghc] wip/nfs-locking: Use orderOnly dependencies for ordering ghc-cabal invocations (avoids unnecessary rebuilds). (804a5e2)

git at git.haskell.org git at git.haskell.org
Fri Oct 27 00:19:33 UTC 2017


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

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

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

commit 804a5e2ccc8a844f30b897fbe743b424b0cc7efb
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Mon Dec 28 14:56:44 2015 +0000

    Use orderOnly dependencies for ordering ghc-cabal invocations (avoids unnecessary rebuilds).


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

804a5e2ccc8a844f30b897fbe743b424b0cc7efb
 src/Rules/Data.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Rules/Data.hs b/src/Rules/Data.hs
index e0a6239..879dc1e 100644
--- a/src/Rules/Data.hs
+++ b/src/Rules/Data.hs
@@ -26,7 +26,7 @@ buildPackageData rs target @ (PartialTarget stage pkg) = do
         deps <- packageDeps pkg
         pkgs <- interpretPartial target getPackages
         let depPkgs = matchPackageNames (sort pkgs) deps
-        need $ map (pkgDataFile stage) depPkgs
+        orderOnly $ map (pkgDataFile stage) depPkgs
 
         need [cabalFile]
         buildWithResources [(resGhcCabal rs, 1)] $



More information about the ghc-commits mailing list