Hadrian: compile libgmp static on Windows
authorTamar Christina <tamar@zhox.com>
Sun, 27 Jan 2019 21:30:50 +0000 (21:30 +0000)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Fri, 8 Feb 2019 16:00:17 +0000 (11:00 -0500)
hadrian/src/Settings/Packages.hs

index 4be0fba..e261dfe 100644 (file)
@@ -137,6 +137,9 @@ packageArgs = do
 
           , builder (Cabal Setup) ? mconcat
             [ flag GmpInTree ? arg "--configure-option=--with-intree-gmp"
+            -- Windows is always built with inplace GMP until we have dynamic
+            -- linking working.
+            , windowsHost  ? arg "--configure-option=--with-intree-gmp"
             , flag GmpFrameworkPref ?
               arg "--configure-option=--with-gmp-framework-preferred"
             , arg ("--configure-option=CFLAGS=" ++ includeGmp)