[commit: ghc] wip/nfs-locking: Avoid cyclic dependencies, see #103. (50dbdd4)

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


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

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

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

commit 50dbdd4040e45284fc4cc53115469fe3a882ac5a
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Tue Jan 5 21:30:58 2016 +0000

    Avoid cyclic dependencies, see #103.


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

50dbdd4040e45284fc4cc53115469fe3a882ac5a
 src/Rules/IntegerGmp.hs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Rules/IntegerGmp.hs b/src/Rules/IntegerGmp.hs
index f86371c..0d5da26 100644
--- a/src/Rules/IntegerGmp.hs
+++ b/src/Rules/IntegerGmp.hs
@@ -105,7 +105,9 @@ integerGmpRules = do
 
         -- check whether we need to build in tree gmp
         -- this is indicated by line "HaveFrameworkGMP = YES" in `config.mk`
-        need [pkgDataFile Stage1 integerGmp]
+
+        runConfigure (pkgPath integerGmp) [] []
+
         configMk <- liftIO . readFile $ integerGmpBase -/- "config.mk"
         if "HaveFrameworkGMP = YES" `isInfixOf` configMk
         then do



More information about the ghc-commits mailing list