[commit: ghc] wip/andrey/hadrian-readme, wip/andrey/windows-cabal, wip/fix-junit, wip/spj-wibbles: Hadrian: Add support for building stage3 (6486c6e)
git at git.haskell.org
git at git.haskell.org
Thu Jan 10 22:36:35 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branches: wip/andrey/hadrian-readme,wip/andrey/windows-cabal,wip/fix-junit,wip/spj-wibbles
Link : http://ghc.haskell.org/trac/ghc/changeset/6486c6e49c53e75f37ed732b38c5be7ae64785e8/ghc
>---------------------------------------------------------------
commit 6486c6e49c53e75f37ed732b38c5be7ae64785e8
Author: Matthew Pickering <matthewtpickering at gmail.com>
Date: Sun Dec 16 08:58:41 2018 +0000
Hadrian: Add support for building stage3
This ticket enables the building of a `stage3` compiler by making the
build logic more consistent and predictable in Hadrian.
Two of the main changes are:
1. In order to build anything at stageN we use the package database
present at stageN. Fixing #16069
2. `haddock` and `ghc-tags` are built
as stage1 executables (with the stage1 compiler) rather than as
stage2 compiler. Fixing
[hadrian#661](https://github.com/snowleopard/hadrian/issues/661)
In order to build a stage3 compiler, you have to set the new `finalStage` hadrian option to `Stage3`.
>---------------------------------------------------------------
6486c6e49c53e75f37ed732b38c5be7ae64785e8
hadrian/README.md | 7 +++
hadrian/cfg/system.config.in | 4 ++
hadrian/doc/cross-compile.md | 1 -
hadrian/doc/user-settings.md | 20 +++++++--
hadrian/src/Base.hs | 4 +-
hadrian/src/Builder.hs | 4 +-
hadrian/src/Context.hs | 4 +-
hadrian/src/Packages.hs | 22 ++++-----
hadrian/src/Rules.hs | 22 +++++----
hadrian/src/Rules/BinaryDist.hs | 4 +-
hadrian/src/Rules/Generate.hs | 7 +--
hadrian/src/Rules/Libffi.hs | 72 ++++++++++++++++--------------
hadrian/src/Rules/Program.hs | 2 +-
hadrian/src/Settings/Builders/Common.hs | 3 +-
hadrian/src/Settings/Builders/Configure.hs | 3 +-
hadrian/src/Settings/Builders/Make.hs | 9 ++--
hadrian/src/Settings/Default.hs | 9 ++--
hadrian/src/UserSettings.hs | 15 +++----
hadrian/src/Utilities.hs | 13 +++---
19 files changed, 127 insertions(+), 98 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 6486c6e49c53e75f37ed732b38c5be7ae64785e8
More information about the ghc-commits
mailing list