summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Sandberg Ericsson <adam@sandbergericsson.se>2020-02-22 17:44:52 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-02-23 17:32:44 -0500
commit2831544aaab15ab17d66e7af42f890d92d47407a (patch)
treeb572b99aa607b30ebac592be1202b9c1717d2564
parent853210f20699b54dee4f85a15b70b3f02a1b68b7 (diff)
downloadhaskell-2831544aaab15ab17d66e7af42f890d92d47407a.tar.gz
hadrian: docs depend on stage1 ghc
-rw-r--r--hadrian/src/Rules/Documentation.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/hadrian/src/Rules/Documentation.hs b/hadrian/src/Rules/Documentation.hs
index 2afbd87869..8d90357312 100644
--- a/hadrian/src/Rules/Documentation.hs
+++ b/hadrian/src/Rules/Documentation.hs
@@ -135,7 +135,9 @@ checkSphinxWarnings out = do
checkUserGuideFlags :: FilePath -> Action ()
checkUserGuideFlags documentedFlagList = do
scriptPath <- (</> "docs/users_guide/compare-flags.py") <$> topDirectory
- ghcPath <- (</>) <$> topDirectory <*> programPath (vanillaContext Stage1 ghc)
+ ghc <- programPath (vanillaContext Stage1 ghc)
+ need [ghc]
+ ghcPath <- (</>) <$> topDirectory <*> pure ghc
runBuilder Python
[ scriptPath
, "--doc-flags", documentedFlagList