Building stage1 only
Thomas Miedema
thomasmiedema at gmail.com
Tue Oct 20 08:30:36 UTC 2015
Hi Ömer,
in mk/build.mk, set:
* Stage1Only=YES
* stage=1
* BuildFlavour=devel1
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.
Thomas
On Tue, Oct 20, 2015 at 12:35 AM, Richard Eisenberg <eir at cis.upenn.edu>
wrote:
> I haven't tested this, but I imagine putting `stage=1` in your build.mk
> or even on the command line should work.
>
> Richard
>
> On Oct 19, 2015, at 4:47 PM, Ömer Sinan Ağacan <omeragacan at gmail.com>
> wrote:
>
> > (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
> missed)
> >
> > With current build system, even if I choose "devel1" it always builds
> stage2
> > 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
> stages.
> > 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
> very
> > 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
> scratch.
> > 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
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20151020/dcabf5fe/attachment.html>
More information about the ghc-devs
mailing list