[Git][ghc/ghc][wip/romes/hadrian-cross-stage2-rebase_SVEN_FINAL] Fix terminfo dependency
Sven Tennie pushed to branch wip/romes/hadrian-cross-stage2-rebase_SVEN_FINAL at Glasgow Haskell Compiler / GHC Commits: c2cb2d36 by GHC GitLab CI at 2026-03-11T18:57:08+00:00 Fix terminfo dependency - - - - - 1 changed file: - hadrian/src/Settings/Packages.hs Changes: ===================================== hadrian/src/Settings/Packages.hs ===================================== @@ -196,11 +196,13 @@ packageArgs = do -- and executables. This flag disables the latter. , package haskeline ? builder (Cabal Flags) ? arg "-examples" - -- Don't depend upon terminfo when cross-compiling to avoid unnecessary - -- dependencies unless the user provided ncurses explicitly. + -- Don't depend upon terminfo in early stages or when cross-compiling, + -- to avoid unnecessary dependencies unless the user provided ncurses + -- explicitly. For non-cross builds, terminfo is only enabled from + -- Stage2 onwards (i.e. when building the final compiler). -- TODO: Perhaps the user should be able to explicitly enable/disable this. , package haskeline ? - builder (Cabal Flags) ? orM [ notM cross, haveCurses ] `cabalFlag` "terminfo" + builder (Cabal Flags) ? orM [ andM [notM cross, return (stage >= Stage2)], haveCurses ] `cabalFlag` "terminfo" -------------------------------- terminfo ------------------------------ , package terminfo ? View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c2cb2d36753a1e657bd2c78ba832fb01... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c2cb2d36753a1e657bd2c78ba832fb01... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Sven Tennie (@supersven)