<div dir="ltr"><div><br></div><a href="https://ghc.haskell.org/trac/ghc/wiki/MakingReleases#Makingthebinarybuilds">https://ghc.haskell.org/trac/ghc/wiki/MakingReleases#Makingthebinarybuilds</a><br><div><br></div><div><a href="https://ghc.haskell.org/trac/ghc/wiki/Building/Using#Buildconfiguration">https://ghc.haskell.org/trac/ghc/wiki/Building/Using#Buildconfiguration</a><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 29, 2016 at 12:50 AM, Ömer Sinan Ağacan <span dir="ltr"><<a href="mailto:omeragacan@gmail.com" target="_blank">omeragacan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm trying to figure out how to generate a release build. I thought it should<br>
be "perf" setting, but then I realized ghc-stage1 is called with -O (instead of<br>
-O2) when building stage2 with perf setting. So either perf is not the release<br>
setting, or I need stage3 which is probably compiled with stage2 using -O2?<br>
<br>
In any case, it'd be great to document this process of generating a release<br>
build in build.mk.sample. If it's "perf" setting, then maybe we can rename it<br>
to "release" or at least add a comment saying that that's the release build and<br>
you should wait until stage3 is done.<br>
<br>
Another thing that always confuses me is these settings:<br>
<br>
    SRC_HC_OPTS        = -O -H64m<br>
    GhcStage1HcOpts    = -O<br>
    GhcStage2HcOpts    = -O2<br>
    GhcLibHcOpts       = -O2<br>
<br>
As far as I can see, there's no documentation about these in the source tree. I<br>
figured that `GhcStage1HcOpts` is passed to system GHC when compiling stage1,<br>
and `GhcStage2Hcopts` is passed to ghc-stage1 when compiling stage 2. The lib<br>
one is obvious, and it's passed to stage 1 as libs are built using stage 1. But<br>
I still don't understand how is `SRC_HC_OPTS` is used, and what is used when<br>
building stage 3.<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>
</blockquote></div><br></div>