Hadrian: Add support for building stage3

Authored by mpickering on Dec 16 2018, 2:58 AM.

Description

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 Trac #16069

  1. haddock and ghc-tags are built

as stage1 executables (with the stage1 compiler) rather than as
stage2 compiler. Fixing
hadrian#661

In order to build a stage3 compiler, you have to set the new finalStage hadrian option to Stage3.

Details

Committed
mpickeringJan 9 2019, 8:32 AM
Parents
rGHC6b70cf611e5d: Be pickier about unsaturated synonyms in :kind
Branches
Unknown
Tags
Unknown