diff options
author | Adam Sandberg Ericsson <adam@sandbergericsson.se> | 2020-02-22 17:44:52 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-02-23 17:32:44 -0500 |
commit | 2831544aaab15ab17d66e7af42f890d92d47407a (patch) | |
tree | b572b99aa607b30ebac592be1202b9c1717d2564 /hadrian/src/Rules | |
parent | 853210f20699b54dee4f85a15b70b3f02a1b68b7 (diff) | |
download | haskell-2831544aaab15ab17d66e7af42f890d92d47407a.tar.gz |
hadrian: docs depend on stage1 ghc
Diffstat (limited to 'hadrian/src/Rules')
-rw-r--r-- | hadrian/src/Rules/Documentation.hs | 4 |
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 |