[commit: ghc] wip/nfs-locking: Register the access to the package database when compiling with GHC (03ebefd)

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


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

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

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

commit 03ebefdfaf33592d86105ad63de960adb9143d11
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Tue Oct 10 15:38:30 2017 +0100

    Register the access to the package database when compiling with GHC


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

03ebefdfaf33592d86105ad63de960adb9143d11
 src/Rules/Compile.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Rules/Compile.hs b/src/Rules/Compile.hs
index c71079a..a4b1278 100644
--- a/src/Rules/Compile.hs
+++ b/src/Rules/Compile.hs
@@ -17,7 +17,7 @@ compilePackage rs context at Context {..} = do
             src <- obj2src context obj
             need [src]
             needDependencies context src $ obj <.> "d"
-            build $ target context (compiler stage) [src] [obj]
+            buildWithResources rs $ target context (compiler stage) [src] [obj]
         compileHs = \[obj, _hi] -> do
             path <- buildPath context
             (src, deps) <- lookupDependencies (path -/- ".dependencies") obj



More information about the ghc-commits mailing list