[commit: ghc] wip/nfs-locking: Add missing dependencies on generated files (010dd78)

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


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

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

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

commit 010dd78b1e574c648f9a93d2a636ff9ae05422ff
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Mon Oct 31 23:55:27 2016 +0000

    Add missing dependencies on generated files
    
    See #285.


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

010dd78b1e574c648f9a93d2a636ff9ae05422ff
 src/Rules/Dependencies.hs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/Rules/Dependencies.hs b/src/Rules/Dependencies.hs
index 04c4f1f..192e24c 100644
--- a/src/Rules/Dependencies.hs
+++ b/src/Rules/Dependencies.hs
@@ -6,6 +6,7 @@ import Base
 import Context
 import Expression
 import Oracles.ModuleFiles
+import Rules.Generate
 import Settings.Path
 import Target
 import Util
@@ -15,6 +16,7 @@ buildPackageDependencies rs context at Context {..} =
     buildPath context -/- ".dependencies" %> \deps -> do
         srcs <- hsSources context
         need srcs
+        orderOnly =<< interpretInContext context generatedDependencies
         let mk = deps <.> "mk"
         if srcs == []
         then writeFileChanged mk ""



More information about the ghc-commits mailing list