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
Model registry
Operate
Terraform modules
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
lortabac
GHC
Commits
4fd94c3f
Commit
4fd94c3f
authored
7 years ago
by
Andrey Mokhov
Browse files
Options
Downloads
Patches
Plain Diff
Update stage1Only docs
See #440
parent
3bac585e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/user-settings.md
+7
-1
7 additions, 1 deletion
doc/user-settings.md
src/UserSettings.hs
+10
-15
10 additions, 15 deletions
src/UserSettings.hs
with
17 additions
and
16 deletions
doc/user-settings.md
+
7
−
1
View file @
4fd94c3f
...
...
@@ -49,7 +49,7 @@ others; see `hadrian/doc/flavours.md`), which can be activated from the command
e.g. by passing
`--flavour=quick`
. Users can define new build flavours by adding them
to
`userFlavours`
list:
```
haskell
-- | User
defined build flavours. See 'userFlavour' as an example.
-- | User
-
defined build flavours. See 'userFlavour' as an example.
userFlavours
::
[
Flavour
]
userFlavours
=
[
userFlavour
]
-- Add more build flavours if need be.
...
...
@@ -186,6 +186,12 @@ verboseCommands = return True
## Miscellaneous
By setting
`stage1Only = True`
you can disable building Stage2 GHC (i.e. the
`ghc-stage2`
executable) and Stage2 utilities, such as
`haddock`
. Note that all
Stage0 and Stage1 libraries (including
`compiler`
) will still be built. Enabling
this flag during installation leads to installing
`ghc-stage1`
instead of
`ghc-stage2`
, and
`ghc-pkg`
that was build with the Stage0 compiler.
To change the default behaviour of Hadrian with respect to building split
objects, override the
`splitObjects`
setting of the
`Flavour`
record:
```
haskell
...
...
This diff is collapsed.
Click to expand it.
src/UserSettings.hs
+
10
−
15
View file @
4fd94c3f
...
...
@@ -21,7 +21,7 @@ import {-# SOURCE #-} Settings.Default
userBuildRoot
::
BuildRoot
userBuildRoot
=
BuildRoot
"_build"
-- | User
defined build flavours. See 'userFlavour' as an example.
-- | User
-
defined build flavours. See 'userFlavour' as an example.
userFlavours
::
[
Flavour
]
userFlavours
=
[
userFlavour
]
-- Add more build flavours if need be.
...
...
@@ -30,7 +30,7 @@ userFlavours = [userFlavour] -- Add more build flavours if need be.
userFlavour
::
Flavour
userFlavour
=
defaultFlavour
{
name
=
"user"
}
-- Modify other settings here.
-- | Add user
defined packages. Note, this only lets Hadrian know about the
-- | Add user
-
defined packages. Note, this only lets Hadrian know about the
-- existence of a new package; to actually build it you need to create a new
-- build flavour, modifying the list of packages that are built by default.
userPackages
::
[
Package
]
...
...
@@ -52,18 +52,13 @@ buildProgressColour = BuildProgressColour (Dull, Magenta)
successColour
::
SuccessColour
successColour
=
SuccessColour
(
Dull
,
Green
)
{-
Stage1Only=YES means:
- don't build ghc-stage2 (the executable)
- don't build utils that rely on ghc-stage2
See Note [No stage2 packages when CrossCompiling or Stage1Only] in
./ghc.mk.
- install ghc-stage1 instead of ghc-stage2
- install the ghc-pkg that was built with the stage0 compiler
- (*do* still build compiler/stage2 (i.e. the ghc library))
- (*do* still build all other libraries)
-}
-- | Stage1Only flag, default off
-- | TODO: Set this dynamically
-- TODO: Set this flag from the command line.
-- | Set this flag to 'True' to disable building Stage2 GHC (i.e. the @ghc-stage2@
-- executable) and Stage2 utilities (such as @haddock@). Note that all Stage0
-- and Stage1 libraries (including 'compiler') will still be built. Enabling
-- this flag during installation leads to installing @ghc-stage1@ instead of
-- @ghc-stage2@, and @ghc-pkg@ that was build with the Stage0 compiler.
-- Also see Note [No stage2 packages when CrossCompiling or Stage1Only] in the
-- top-level @ghc.mk@.
stage1Only
::
Bool
stage1Only
=
False
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