Skip to content
  • Matthew Pickering's avatar
    5c4421b1
    hadrian: Introduce new package database for executables needed to build stage0 · 5c4421b1
    Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
    These executables (such as hsc2hs) are built using the boot compiler and
    crucially, most libraries from the global package database.
    
    We also move other build-time executables to be built in this stage such
    as linters which also cleans up which libraries end up in the global
    package database. This allows us to remove hacks where linters-common is
    removed from the package database when a bindist is created.
    
    This fixes issues caused by infinite recursion due to bytestring adding
    a dependency on template-haskell.
    
    Fixes #21634
    5c4421b1
    hadrian: Introduce new package database for executables needed to build stage0
    Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
    These executables (such as hsc2hs) are built using the boot compiler and
    crucially, most libraries from the global package database.
    
    We also move other build-time executables to be built in this stage such
    as linters which also cleans up which libraries end up in the global
    package database. This allows us to remove hacks where linters-common is
    removed from the package database when a bindist is created.
    
    This fixes issues caused by infinite recursion due to bytestring adding
    a dependency on template-haskell.
    
    Fixes #21634
Loading