Building stage1 only
thomasmiedema at gmail.com
Tue Oct 20 08:30:36 UTC 2015
in mk/build.mk, set:
Then 'cd ghc && make'. Don't run make in the toplevel directory.
After building the stage1 compiler, it does still start the process of
configuring the libraries for the stage2 compiler, but it shouldn't build
them. Last time I checked, I didn't find an easy way to fix this. Maybe the
shake rewrite of the build system will have a better solution.
See Note [Stage1Only vs stage=1] in mk/config.mk.in for an explanation.
On Tue, Oct 20, 2015 at 12:35 AM, Richard Eisenberg <eir at cis.upenn.edu>
> I haven't tested this, but I imagine putting `stage=1` in your build.mk
> or even on the command line should work.
> On Oct 19, 2015, at 4:47 PM, Ömer Sinan Ağacan <omeragacan at gmail.com>
> > (I know I asked this many times in IRC channel but I don't remember
> getting any
> > answers. I apologize if anyone had answered this on IRC channel and I
> > With current build system, even if I choose "devel1" it always builds
> > compiler too. A comment in build.mk says that it's for working on stage1
> > compiler, so I'd expect it to build only stage1.
> > The reason I want stage1-only builds is the time it takes to build both
> > It takes approximately 30 minutes and if I could reduce this down to
> half that
> > would greatly improve my work flow.
> > Most of the time I don't need a full build, but in my experience, it's
> > easy to end up in a state where `make` simply can't build, and only
> > easy fix is a
> > `make clean`, which costs 30 minutes because then I have to build from
> > This happens way too often, and so I need a stage1-only build.
> > Thanks..
> > _______________________________________________
> > ghc-devs mailing list
> > ghc-devs at haskell.org
> > http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
> ghc-devs mailing list
> ghc-devs at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ghc-devs