Skip to content
  • Thomas Miedema's avatar
    Build system: cleanup BUILD_DIRS + add lots of Notes · 8be43dd9
    Thomas Miedema authored
    Summary:
    See Note [CrossCompiling vs Stage1Only] in mk/config.mk.in.
    See Note [Stage1Only vs stage=1] in mk/config.mk.in.
    See Note [No stage2 packages when CrossCompiling or Stage1Only].
    
    Also:
      * use stage2 to build mkUserGuidePart, as was probably intended.
        Now the following represent the same set of packages:
        - packages that we build with ghc-stage2
        - packages that depend on the ghc library
        Those packages are: haddock, mkUserGuidePart and ghctags.
      * don't let utils that don't depend on the ghc library depend on its
        package-data.mk file. Instead, let those utils directly depend on
        the package-data.mk files of the stage1 packages. Not sure if it
        improves anything, but I found it easier to explain what's going on
        this way.
    
    (partially) reviewed by: austin
    
    Differential Revision: https://phabricator.haskell.org/D1218
    8be43dd9