diff options
-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 |