summaryrefslogtreecommitdiff
path: root/hadrian/src/Settings/Builders/Configure.hs
diff options
context:
space:
mode:
Diffstat (limited to 'hadrian/src/Settings/Builders/Configure.hs')
-rw-r--r--hadrian/src/Settings/Builders/Configure.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/hadrian/src/Settings/Builders/Configure.hs b/hadrian/src/Settings/Builders/Configure.hs
index 068591dfbb..214aed6c27 100644
--- a/hadrian/src/Settings/Builders/Configure.hs
+++ b/hadrian/src/Settings/Builders/Configure.hs
@@ -7,7 +7,8 @@ import Settings.Builders.Common
configureBuilderArgs :: Args
configureBuilderArgs = do
gmpPath <- expr gmpBuildPath
- libffiPath <- expr libffiBuildPath
+ stage <- getStage
+ libffiPath <- expr (libffiBuildPath stage)
mconcat [ builder (Configure gmpPath) ? do
hostPlatform <- getSetting HostPlatform
buildPlatform <- getSetting BuildPlatform