[commit: ghc] wip/nfs-locking: Adds integerGmpLibraryH to Rules.IntegerGmp (d40050f)

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


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

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

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

commit d40050fb1554db54db683f7d26a55bc3fb0868df
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date:   Mon Jan 4 20:50:58 2016 +0800

    Adds integerGmpLibraryH to Rules.IntegerGmp
    
    This is, so we can use integerGmpLibraryH, without having to use the path outside of the Rules.IntegerGmp module.


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

d40050fb1554db54db683f7d26a55bc3fb0868df
 src/Rules/IntegerGmp.hs | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/Rules/IntegerGmp.hs b/src/Rules/IntegerGmp.hs
index 4e19b9d..f927102 100644
--- a/src/Rules/IntegerGmp.hs
+++ b/src/Rules/IntegerGmp.hs
@@ -1,4 +1,4 @@
-module Rules.IntegerGmp (integerGmpRules, integerGmpLibrary) where
+module Rules.IntegerGmp (integerGmpRules, integerGmpLibrary, integerGmpLibraryH) where
 
 import Base
 import Expression
@@ -16,6 +16,9 @@ integerGmpBuild = integerGmpBase -/- "gmpbuild"
 integerGmpLibrary :: FilePath
 integerGmpLibrary = integerGmpBase -/- "libgmp.a"
 
+integerGmpLibraryH :: FilePath
+integerGmpLibraryH = integerGmpBase -/- "gmp.h"
+
 -- relative to integerGmpBuild
 integerGmpPatch :: FilePath
 integerGmpPatch = ".." -/- "tarball" -/- "gmp-5.0.4.patch"
@@ -103,4 +106,4 @@ integerGmpRules = do
 
         putSuccess "| Successfully built custom library 'integer-gmp'"
 
-    "libraries/integer-gmp/gmp/gmp.h" %> \_ -> need [integerGmpLibrary]
+    integerGmpLibraryH %> \_ -> need [integerGmpLibrary]



More information about the ghc-commits mailing list