summaryrefslogtreecommitdiff
path: root/hadrian/src/Builder.hs
diff options
context:
space:
mode:
Diffstat (limited to 'hadrian/src/Builder.hs')
-rw-r--r--hadrian/src/Builder.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/hadrian/src/Builder.hs b/hadrian/src/Builder.hs
index 7624ae91ad..072a2edd73 100644
--- a/hadrian/src/Builder.hs
+++ b/hadrian/src/Builder.hs
@@ -30,6 +30,7 @@ import Hadrian.Utilities
import Base
import Context
import Oracles.Flag
+import Oracles.Setting (setting, Setting(..))
import Packages
-- | C compiler can be used in two different modes:
@@ -180,7 +181,11 @@ instance H.Builder Builder where
Autoreconf dir -> return [dir -/- "configure.ac"]
Configure dir -> return [dir -/- "configure"]
- Ghc _ Stage0 -> includesDependencies Stage0
+ Ghc _ Stage0 -> do
+ -- Read the boot GHC version here to make sure we rebuild when it
+ -- changes (#18001).
+ _bootGhcVersion <- setting GhcVersion
+ includesDependencies Stage0
Ghc _ stage -> do
root <- buildRoot
touchyPath <- programPath (vanillaContext Stage0 touchy)