[commit: ghc] wip/nfs-locking: Add a rule for libraries/integer-gmp/gmp/gmp.h, see #103. (d716ae5)

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


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

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

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

commit d716ae544c182207ba70b3becdb11bcc3aca5a73
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Wed Jan 6 01:50:10 2016 +0000

    Add a rule for libraries/integer-gmp/gmp/gmp.h, see #103.


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

d716ae544c182207ba70b3becdb11bcc3aca5a73
 src/Rules/IntegerGmp.hs | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Rules/IntegerGmp.hs b/src/Rules/IntegerGmp.hs
index 142a9c6..2b9bbd9 100644
--- a/src/Rules/IntegerGmp.hs
+++ b/src/Rules/IntegerGmp.hs
@@ -116,7 +116,8 @@ integerGmpRules = do
             putBuild "| No GMP framework detected; in tree GMP will be built"
             runMake integerGmpBuild ["MAKEFLAGS='LIBTOOL=bash\\ libtool'"]
 
-            copyFile integerGmpLibraryInTreeH integerGmpLibraryH
+            copyFile (integerGmpBuild -/- "gmp.h") integerGmpLibraryInTreeH
+            copyFile (integerGmpBuild -/- "gmp.h") integerGmpLibraryH
             -- TODO: why copy library, can we move it instead?
             copyFile (integerGmpBuild -/- ".libs/libgmp.a") integerGmpLibrary
 
@@ -126,3 +127,5 @@ integerGmpRules = do
             runBuilder Ranlib [integerGmpLibrary]
 
         putSuccess "| Successfully built custom library 'integer-gmp'"
+
+    integerGmpLibraryInTreeH %> \_ -> need [integerGmpLibraryH]



More information about the ghc-commits mailing list