[commit: ghc] wip/nfs-locking: Add missing dependencies. (41778b0)
git at git.haskell.org
git at git.haskell.org
Fri Oct 27 00:22:56 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/nfs-locking
Link : http://ghc.haskell.org/trac/ghc/changeset/41778b07cc7fbbb8fa0006343213a65d2c12afaf/ghc
>---------------------------------------------------------------
commit 41778b07cc7fbbb8fa0006343213a65d2c12afaf
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date: Fri Feb 26 00:46:11 2016 +0000
Add missing dependencies.
>---------------------------------------------------------------
41778b07cc7fbbb8fa0006343213a65d2c12afaf
src/Rules/Data.hs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/Rules/Data.hs b/src/Rules/Data.hs
index 360eb5a..1eca7d9 100644
--- a/src/Rules/Data.hs
+++ b/src/Rules/Data.hs
@@ -57,6 +57,7 @@ buildPackageData context @ Context {..} = do
-- TODO: PROGNAME was $(CrossCompilePrefix)hp2ps
priority 2.0 $ do
when (package == hp2ps) $ dataFile %> \mk -> do
+ orderOnly $ generatedDependencies stage package
includes <- interpretInContext context $ fromDiffExpr includesArgs
let prefix = fixKey (contextPath context) ++ "_"
cSrcs = [ "AreaBelow.c", "Curves.c", "Error.c", "Main.c"
@@ -73,6 +74,7 @@ buildPackageData context @ Context {..} = do
putSuccess $ "| Successfully generated '" ++ mk ++ "'."
when (package == unlit) $ dataFile %> \mk -> do
+ orderOnly $ generatedDependencies stage package
let prefix = fixKey (contextPath context) ++ "_"
contents = unlines $ map (prefix++)
[ "PROGNAME = unlit"
@@ -82,6 +84,7 @@ buildPackageData context @ Context {..} = do
putSuccess $ "| Successfully generated '" ++ mk ++ "'."
when (package == touchy) $ dataFile %> \mk -> do
+ orderOnly $ generatedDependencies stage package
let prefix = fixKey (contextPath context) ++ "_"
contents = unlines $ map (prefix++)
[ "PROGNAME = touchy"
@@ -93,6 +96,7 @@ buildPackageData context @ Context {..} = do
-- package, we cannot generate the corresponding `package-data.mk` file
-- by running by running `ghcCabal`, because it has not yet been built.
when (package == ghcCabal && stage == Stage0) $ dataFile %> \mk -> do
+ orderOnly $ generatedDependencies stage package
let prefix = fixKey (contextPath context) ++ "_"
contents = unlines $ map (prefix++)
[ "PROGNAME = ghc-cabal"
More information about the ghc-commits
mailing list