[commit: ghc] wip/nfs-locking: Track generated sources. (44f7b51)

git at git.haskell.org git at git.haskell.org
Thu Oct 26 23:37:59 UTC 2017


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

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

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

commit 44f7b51095e7d4c151eef50c6f6180b27efa4aa1
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Mon Sep 21 01:01:13 2015 +0100

    Track generated sources.


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

44f7b51095e7d4c151eef50c6f6180b27efa4aa1
 src/Rules/Compile.hs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Rules/Compile.hs b/src/Rules/Compile.hs
index 3940d64..90712ce 100644
--- a/src/Rules/Compile.hs
+++ b/src/Rules/Compile.hs
@@ -19,7 +19,7 @@ compilePackage _ target @ (PartialTarget stage package) = do
 
     matchBuildResult buildPath "o" ?> \obj -> do
         (src, deps) <- dependencies buildPath obj
-        need deps
+        need $ src : deps
         if ("//*.c" ?== src)
         then build $ fullTarget target (Gcc stage) [src] [obj]
         else do
@@ -28,6 +28,6 @@ compilePackage _ target @ (PartialTarget stage package) = do
 
     matchBuildResult buildPath "o-boot" ?> \obj -> do
         (src, deps) <- dependencies buildPath obj
-        need deps
+        need $ src : deps
         let way = detectWay obj
         build $ fullTargetWithWay target (Ghc stage) way [src] [obj]



More information about the ghc-commits mailing list