summaryrefslogtreecommitdiff
path: root/hadrian/src/Rules/Gmp.hs
diff options
context:
space:
mode:
Diffstat (limited to 'hadrian/src/Rules/Gmp.hs')
-rw-r--r--hadrian/src/Rules/Gmp.hs7
1 files changed, 1 insertions, 6 deletions
diff --git a/hadrian/src/Rules/Gmp.hs b/hadrian/src/Rules/Gmp.hs
index 9b56a3e4fd..a78170cf6a 100644
--- a/hadrian/src/Rules/Gmp.hs
+++ b/hadrian/src/Rules/Gmp.hs
@@ -92,12 +92,7 @@ gmpRules = do
copyFile (gmpPath -/- gmpLibraryH)
-- This file is created when 'integerGmp' is configured.
- gmpPath -/- "config.mk" %> \_ -> do
- -- Calling 'need' on @setup-config@ triggers 'configurePackage'. Why
- -- this indirection? Going via @setup-config@ allows us to cache the
- -- configuration step, i.e. not to repeat it if it's already been done.
- setupConfig <- pkgSetupConfigFile gmpContext
- need [setupConfig]
+ gmpPath -/- "config.mk" %> \_ -> ensureConfigured gmpContext
-- Run GMP's configure script
gmpPath -/- "Makefile" %> \mk -> do