[commit: ghc] wip/nfs-locking: Adds Integer Gmp Library to IntegerGmp (a228d2b)
git at git.haskell.org
git at git.haskell.org
Thu Oct 26 23:35:44 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/nfs-locking
Link : http://ghc.haskell.org/trac/ghc/changeset/a228d2b44c75b4899f12a3700b98f181e3b408ec/ghc
>---------------------------------------------------------------
commit a228d2b44c75b4899f12a3700b98f181e3b408ec
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date: Mon Jan 4 21:05:42 2016 +0800
Adds Integer Gmp Library to IntegerGmp
This should fix #88
>---------------------------------------------------------------
a228d2b44c75b4899f12a3700b98f181e3b408ec
src/Rules/Dependencies.hs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/Rules/Dependencies.hs b/src/Rules/Dependencies.hs
index d604488..3a3c49a 100644
--- a/src/Rules/Dependencies.hs
+++ b/src/Rules/Dependencies.hs
@@ -2,9 +2,11 @@ module Rules.Dependencies (buildPackageDependencies) where
import Base
import Expression
+import GHC
import Oracles
import Rules.Actions
import Rules.Generate
+import Rules.IntegerGmp
import Rules.Resources
import Settings
import Development.Shake.Util (parseMakefile)
@@ -17,6 +19,9 @@ buildPackageDependencies _ target @ (PartialTarget stage pkg) =
hDepFile = buildPath -/- ".hs-dependencies"
in do
[ buildPath ++ "//*.c.deps", buildPath ++ "//*.cmm.deps" ] |%> \out -> do
+ -- integerGmp (cbits/wrappers.c) depends on the integerGmp library,
+ -- which provides gmp.h
+ when (pkg == integerGmp) $ need [integerGmpLibraryH]
let srcFile = dropBuild . dropExtension $ out
orderOnly $ generatedDependencies stage pkg
need [srcFile]
More information about the ghc-commits
mailing list