summaryrefslogtreecommitdiff
path: root/hadrian/src/Rules/Program.hs
diff options
context:
space:
mode:
authorAlec Theriault <alec.theriault@gmail.com>2019-01-10 04:37:36 -0800
committerBen Gamari <ben@smart-cactus.org>2019-01-16 14:17:47 -0500
commit8765c1e6e6aca590a2fc252c64846890bf87f387 (patch)
tree3486cd9d5eca722a6b19f1f3f038ad72dbbe6958 /hadrian/src/Rules/Program.hs
parent2e05912086bbb8eab213d44af300ecc396d912aa (diff)
downloadhaskell-8765c1e6e6aca590a2fc252c64846890bf87f387.tar.gz
Make sure 'haddock' package also copies resources
...and does so in the lib folder of the right stage
Diffstat (limited to 'hadrian/src/Rules/Program.hs')
-rw-r--r--hadrian/src/Rules/Program.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/hadrian/src/Rules/Program.hs b/hadrian/src/Rules/Program.hs
index 9d8b6d0a0c..c9df6f5e2d 100644
--- a/hadrian/src/Rules/Program.hs
+++ b/hadrian/src/Rules/Program.hs
@@ -71,6 +71,9 @@ buildProgram bin ctx@(Context{..}) rs = do
-- @llvm-targets@, @ghc-usage.txt@, @ghci-usage.txt@,
-- @llvm-passes@.
need =<< ghcDeps stage
+ when (package == haddock) $ do
+ -- Haddock has a resource folder
+ need =<< haddockDeps stage
cross <- flag CrossCompiling
-- For cross compiler, copy @stage0/bin/<pgm>@ to @stage1/bin/@.