Building just a stage 1 compiler?

Hi, Is there a way to tell the GHC build system that I only want to build a stage 1 compiler and the libraries, not a stage 2 compiler? Executing: $ sh boot $ ./configure $ make stage=1 in my build tree still builds the stage 2 compiler as well. Thanks, Tim -- Tim Chevalier * http://cs.pdx.edu/~tjc/ * Often in error, never in doubt

Yes indeed http://hackage.haskell.org/trac/ghc/wiki/Building/Using#RebuildingtheGHCbina... | -----Original Message----- | From: glasgow-haskell-users-bounces@haskell.org [mailto:glasgow-haskell-users- | bounces@haskell.org] On Behalf Of Tim Chevalier | Sent: 19 August 2009 00:15 | To: GHC Users Mailing List | Subject: Building just a stage 1 compiler? | | Hi, | | Is there a way to tell the GHC build system that I only want to build | a stage 1 compiler and the libraries, not a stage 2 compiler? | Executing: | $ sh boot | $ ./configure | $ make stage=1 | | in my build tree still builds the stage 2 compiler as well. | | Thanks, | Tim | | -- | Tim Chevalier * http://cs.pdx.edu/~tjc/ * Often in error, never in doubt | _______________________________________________ | Glasgow-haskell-users mailing list | Glasgow-haskell-users@haskell.org | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

On 19/08/2009 00:15, Tim Chevalier wrote:
Hi,
Is there a way to tell the GHC build system that I only want to build a stage 1 compiler and the libraries, not a stage 2 compiler? Executing: $ sh boot $ ./configure $ make stage=1
in my build tree still builds the stage 2 compiler as well.
I'm surprised that the above builds stage 2. I'd expect it to fail, because stage=1 will omit the build instructions for stage 2, and then the build system will try to build things like Haddock which depend on stage 2, at which point the build should fail. There's no way at the moment to build just stage1 and the libraries from the top-level, but that could be added. You can 'cd ghc; make stage=1' and then 'cd libraries; make'. Cheers, Simon
participants (3)
-
Simon Marlow
-
Simon Peyton-Jones
-
Tim Chevalier