[commit: ghc] wip/nfs-locking: Don't need the GMP library when building with integerSimple (f39305c)

git at git.haskell.org git at git.haskell.org
Fri Oct 27 00:48:46 UTC 2017


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

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

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

commit f39305c46467b30b7697ad42c1a817be9ec90670
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Fri Jan 13 02:12:31 2017 +0000

    Don't need the GMP library when building with integerSimple


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

f39305c46467b30b7697ad42c1a817be9ec90670
 src/Settings/Builders/Ghc.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Settings/Builders/Ghc.hs b/src/Settings/Builders/Ghc.hs
index f30b8e6..006d9f8 100644
--- a/src/Settings/Builders/Ghc.hs
+++ b/src/Settings/Builders/Ghc.hs
@@ -21,7 +21,7 @@ ghcLinkArgs = builder (Ghc LinkHs) ? do
     pkg     <- getPackage
     libs    <- getPkgDataList DepExtraLibs
     libDirs <- getPkgDataList DepLibDirs
-    gmpLibs <- if stage > Stage0
+    gmpLibs <- if stage > Stage0 && integerLibrary flavour == integerGmp
                then do -- TODO: get this data more gracefully
                    let strip = fromMaybe "" . stripPrefix "extra-libraries: "
                    buildInfo <- lift $ readFileLines gmpBuildInfoPath



More information about the ghc-commits mailing list