<div dir="ltr"><div>Hi Ömer,</div><div><br></div><div>in mk/<a href="http://build.mk">build.mk</a>, set:</div><div><br></div><div>* Stage1Only=YES</div><div>* stage=1 </div><div>* BuildFlavour=devel1</div><div><br></div><div>Then 'cd ghc && make'. Don't run make in the toplevel directory.</div><div><br></div><div>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.</div><div><br></div><div>See Note [Stage1Only vs stage=1] in mk/<a href="http://config.mk.in">config.mk.in</a> for an explanation.</div><div><br></div><div>Thomas</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 20, 2015 at 12:35 AM, Richard Eisenberg <span dir="ltr"><<a href="mailto:eir@cis.upenn.edu" target="_blank">eir@cis.upenn.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I haven't tested this, but I imagine putting `stage=1` in your <a href="http://build.mk" rel="noreferrer" target="_blank">build.mk</a> or even on the command line should work.<br>
<span class=""><font color="#888888"><br>
Richard<br>
</font></span><div class=""><div class="h5"><br>
On Oct 19, 2015, at 4:47 PM, Ömer Sinan Ağacan <<a href="mailto:omeragacan@gmail.com">omeragacan@gmail.com</a>> wrote:<br>
<br>
> (I know I asked this many times in IRC channel but I don't remember getting any<br>
> answers. I apologize if anyone had answered this on IRC channel and I missed)<br>
><br>
> With current build system, even if I choose "devel1" it always builds stage2<br>
> compiler too. A comment in <a href="http://build.mk" rel="noreferrer" target="_blank">build.mk</a> says that it's for working on stage1<br>
> compiler, so I'd expect it to build only stage1.<br>
><br>
> The reason I want stage1-only builds is the time it takes to build both stages.<br>
> It takes approximately 30 minutes and if I could reduce this down to half that<br>
> would greatly improve my work flow.<br>
><br>
> Most of the time I don't need a full build, but in my experience, it's very<br>
> easy to end up in a state where `make` simply can't build, and only<br>
> easy fix is a<br>
> `make clean`, which costs 30 minutes because then I have to build from scratch.<br>
> This happens way too often, and so I need a stage1-only build.<br>
><br>
> Thanks..<br>
> _______________________________________________<br>
> ghc-devs mailing list<br>
> <a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</div></div></blockquote></div><br></div></div>