
#7841: Stage1Only conditional program/package building -------------------------------+-------------------------------------------- Reporter: elliottt | Owner: Type: feature request | Status: closed Priority: normal | Milestone: Component: Build System | Version: 7.7 Resolution: worksforme | Keywords: Stage1Only Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Comment(by elliottt): It looks like libraries/base_dist-install_NOT_NEEDED would prevent base from being built at all, instead of just with a specific stage of the compiler. This should be good enough for libraries that shouldn't be built at all for the target of the stage 1 compiler, but wouldn't defining it for a utility program like hsc2hs prevent it from being built with stage 0? I hadn't noticed the guard on the call to build-package in libraries/array/ghc.mk, and just assumed that it would be built with the stage 2 compiler. In the case where stage 2 doesn't get build, what causes the RTS to build, without all_rts being a dependency of all? I'm very interested in getting some version of Stage1Only working, and am happy to do the work to implement it. Could you give me a little guidance so that I can submit a better patch? Thanks! -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7841#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler