summaryrefslogtreecommitdiff
path: root/hadrian/src/Settings
diff options
context:
space:
mode:
authoralexbiehl <alexbiehl@gmail.com>2021-01-10 10:22:32 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-01-17 05:48:39 -0500
commit2facd1e94039cbd489ba0a7ce9ba2c5f53780afc (patch)
treeef6d426ccfbeed28706e035d7e69a1c811b829b3 /hadrian/src/Settings
parent496bc4e8e1e129b6da1ff8694179aefb808e0952 (diff)
downloadhaskell-2facd1e94039cbd489ba0a7ce9ba2c5f53780afc.tar.gz
Hadrian: Pass -jshakethreads to Haddock invocations
Diffstat (limited to 'hadrian/src/Settings')
-rw-r--r--hadrian/src/Settings/Builders/Haddock.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/hadrian/src/Settings/Builders/Haddock.hs b/hadrian/src/Settings/Builders/Haddock.hs
index b01b8a2459..5aeba0c805 100644
--- a/hadrian/src/Settings/Builders/Haddock.hs
+++ b/hadrian/src/Settings/Builders/Haddock.hs
@@ -43,8 +43,10 @@ haddockBuilderArgs = mconcat
hVersion <- expr $ pkgVersion haddock
statsDir <- expr $ haddockStatsFilesDir
ghcOpts <- haddockGhcArgs
+ threads <- shakeThreads <$> expr getShakeOptions
mconcat
- [ arg "--verbosity=0"
+ [ arg $ "-j" ++ (show threads)
+ , arg "--verbosity=0"
, arg $ "-B" ++ root -/- stageString Stage1 -/- "lib"
, arg $ "--lib=" ++ root -/- stageString Stage1 -/- "lib"
, arg $ "--odir=" ++ takeDirectory output