Skip to content
  • Thomas Miedema's avatar
    Early error when crosscompiling + haddock/docs · 04fb7813
    Thomas Miedema authored and Ben Gamari's avatar Ben Gamari committed
    When CrossCompiling=YES or Stage1Only=YES, building the haddocks and the
    User's Guide should be skipped, because haddock and mkUserGuidePart
    depend on the GHC API.
    See Note [No stage2 packages when CrossCompiling or Stage1Only] for
    details.
    
    There are several places in the build system where the variables
    HADDOCK_DOCS and BUILD_SPHINX_* are checked. Instead of also checking
    for the variables CrossCompiling or Stage1Only in all those places,
    `make` will now exit with a nice error message when the user requests
    the impossible.
    
    Reviewers: rwbarton, austin, bgamari
    
    Reviewed By: bgamari
    
    Differential Revision: https://phabricator.haskell.org/D1882
    04fb7813