Sven Tennie pushed to branch wip/romes/hadrian-cross-stage2-rebase_SVEN_FINAL at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • hadrian/src/Rules/BinaryDist.hs
    ... ... @@ -214,6 +214,12 @@ buildBinDistDir root conf@BindistConfig{..} = do
    214 214
                   IO.removeFile versioned_runhaskell_path <|> return ()
    
    215 215
                   IO.createFileLink version_prog versioned_runhaskell_path
    
    216 216
     
    
    217
    +    -- The haddock builder hardcodes Stage1 for its resource files (Builder.hs),
    
    218
    +    -- so for cross bindists (library_stage /= Stage1) the html/latex theme dirs
    
    219
    +    -- are not populated in the library_stage lib dir.
    
    220
    +    when (library_stage /= Stage1) $
    
    221
    +        need =<< haddockDeps library_stage
    
    222
    +
    
    217 223
         copyDirectory (ghcBuildDir -/- "lib") bindistFilesDir
    
    218 224
     
    
    219 225
         -- Regenerate settings file without LibDir. For bindists, LibDir should