summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-02-27 11:30:08 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-02-29 05:11:27 -0500
commit34c7d23074f47c720b5722ca14d78a34213eabb6 (patch)
treefc654b510df05933a2d29b7b744e063e5e361d35
parent252e51179bd179f52e25dea762ef7b95bc56ce0a (diff)
downloadhaskell-34c7d23074f47c720b5722ca14d78a34213eabb6.tar.gz
Fix Hadrian's ``--configure`` (fix #17883)
-rw-r--r--hadrian/src/Settings/Packages.hs17
1 files changed, 9 insertions, 8 deletions
diff --git a/hadrian/src/Settings/Packages.hs b/hadrian/src/Settings/Packages.hs
index 39fb92f7f5..02f483cc53 100644
--- a/hadrian/src/Settings/Packages.hs
+++ b/hadrian/src/Settings/Packages.hs
@@ -171,16 +171,17 @@ packageArgs = do
gmpPackageArgs :: Args
gmpPackageArgs = do
- -- These are only used for non-in-tree builds.
- librariesGmp <- getSetting GmpLibDir
- includesGmp <- getSetting GmpIncludeDir
+ package integerGmp ? do
+ -- These are only used for non-in-tree builds.
+ librariesGmp <- getSetting GmpLibDir
+ includesGmp <- getSetting GmpIncludeDir
- -- Windows is always built with inplace GMP until we have dynamic
- -- linking working.
- inTreeFlag <- getFlag GmpInTree
- let inTree = inTreeFlag || windowsHost
+ -- Windows is always built with inplace GMP until we have dynamic
+ -- linking working.
+ inTreeFlag <- getFlag GmpInTree
+ let inTree = inTreeFlag || windowsHost
- package integerGmp ? mconcat
+ mconcat
[ builder (Cabal Setup) ? mconcat
[ inTree ? arg "--configure-option=--with-intree-gmp"
, flag GmpFrameworkPref ?