Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gershomb
GHC
Commits
c6477639
Commit
c6477639
authored
4 years ago
by
adam
Committed by
Marge Bot
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
hadrian: correctly copy the docs dir into the bindist #18669
parent
3aae036e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hadrian/src/Rules/BinaryDist.hs
+9
-1
9 additions, 1 deletion
hadrian/src/Rules/BinaryDist.hs
with
9 additions
and
1 deletion
hadrian/src/Rules/BinaryDist.hs
+
9
−
1
View file @
c6477639
...
...
@@ -12,6 +12,7 @@ import Settings
import
Settings.Program
(
programContext
)
import
Target
import
Utilities
import
qualified
System.Directory.Extra
as
IO
{-
Note [Binary distributions]
...
...
@@ -136,13 +137,20 @@ bindistRules = do
copyDirectory
(
ghcBuildDir
-/-
"bin"
)
bindistFilesDir
copyDirectory
(
ghcBuildDir
-/-
"lib"
)
bindistFilesDir
copyDirectory
(
rtsIncludeDir
)
bindistFilesDir
unless
cross
$
need
[
"docs"
]
-- TODO: we should only embed the docs that have been generated
-- depending on the current settings (flavours' "ghcDocs" field and
-- "--docs=.." command-line flag)
-- Currently we embed the "docs" directory if it exists but it may
-- contain outdated or even invalid data.
whenM
(
doesDirectoryExist
(
root
-/-
"docs"
))
$
do
-- Use the IO version of doesDirectoryExist because the Shake Action
-- version should not be used for directories the build system can
-- create. Using the Action version caused documentation to not be
-- included in the bindist in the past (part of the problem in #18669).
whenM
(
liftIO
(
IO
.
doesDirectoryExist
(
root
-/-
"docs"
)))
$
do
copyDirectory
(
root
-/-
"docs"
)
bindistFilesDir
when
windowsHost
$
do
copyDirectory
(
root
-/-
"mingw"
)
bindistFilesDir
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment