[commit: ghc] wip/nfs-locking: Adds gmp.h to the integerGmp dependencies. (6fd807b)
git at git.haskell.org
git at git.haskell.org
Thu Oct 26 23:36:48 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/nfs-locking
Link : http://ghc.haskell.org/trac/ghc/changeset/6fd807ba05023634fb7f6082ef2369b9f7f90f6b/ghc
>---------------------------------------------------------------
commit 6fd807ba05023634fb7f6082ef2369b9f7f90f6b
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date: Tue Jan 5 13:05:18 2016 +0800
Adds gmp.h to the integerGmp dependencies.
Fix #88. <gmp.h> is imported by libraries/integer-gmp/cbits/wrappers.c, hence the dependency
generation with GccM, requires gmp.h to be available. We therefore add it to the
generated dependencies.
>---------------------------------------------------------------
6fd807ba05023634fb7f6082ef2369b9f7f90f6b
src/Rules/Generate.hs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/Rules/Generate.hs b/src/Rules/Generate.hs
index 65c0abf..921c672 100644
--- a/src/Rules/Generate.hs
+++ b/src/Rules/Generate.hs
@@ -69,10 +69,15 @@ compilerDependencies stage =
, "primop-vector-tycons.hs-incl"
, "primop-vector-tys.hs-incl" ]
+integerGmpDependencies :: [FilePath]
+integerGmpDependencies = ((pkgPath integerGmp -/- "gmp") -/-) <$>
+ [ "gmp.h" ] -- identical to integerGmpLibraryH, but doesn't require the import.
+
generatedDependencies :: Stage -> Package -> [FilePath]
generatedDependencies stage pkg
| pkg == compiler = compilerDependencies stage
| pkg == rts = derivedConstantsDependencies
+ | pkg == integerGmp = integerGmpDependencies
| stage == Stage0 = defaultDependencies
| otherwise = []
More information about the ghc-commits
mailing list