summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Lau <luke_lau@icloud.com>2019-10-19 02:18:09 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-27 11:35:40 -0400
commitd2520bef5e92d95142e7dfd7fd8ea61f8086aa19 (patch)
tree831912a5feb6fc709d1d25c8919d8e2e03de1edf
parentfc3a5205b6c3999b2dd8b3269113152180bfbaf4 (diff)
downloadhaskell-d2520bef5e92d95142e7dfd7fd8ea61f8086aa19.tar.gz
Fix path to ghc-flags in users guide Hadrian rules
It should point to the _build directory, not the source
-rw-r--r--hadrian/src/Rules/Documentation.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/hadrian/src/Rules/Documentation.hs b/hadrian/src/Rules/Documentation.hs
index 77c98e623d..5296e2bea3 100644
--- a/hadrian/src/Rules/Documentation.hs
+++ b/hadrian/src/Rules/Documentation.hs
@@ -114,7 +114,7 @@ documentationRules = do
when (SphinxPDFs `Set.member` doctargets)
$ checkUserGuideFlags $ pdfRoot -/- "users_guide" -/- "ghc-flags.txt"
when (SphinxHTML `Set.member` doctargets)
- $ checkUserGuideFlags $ htmlRoot -/- "users_guide" -/- "ghc-flags.txt"
+ $ checkUserGuideFlags $ root -/- htmlRoot -/- "users_guide" -/- "ghc-flags.txt"
where archiveTarget "libraries" = Haddocks
archiveTarget _ = SphinxHTML
@@ -132,7 +132,7 @@ checkSphinxWarnings out = do
-- | Check that all GHC flags are documented in the users guide.
checkUserGuideFlags :: FilePath -> Action ()
checkUserGuideFlags documentedFlagList = do
- scriptPath <- (</> "docs/user_guide/compare-flags.py") <$> topDirectory
+ scriptPath <- (</> "docs/users_guide/compare-flags.py") <$> topDirectory
ghcPath <- (</>) <$> topDirectory <*> programPath (vanillaContext Stage1 ghc)
runBuilder Python
[ scriptPath