<div dir="ltr">This sort of ties into some of the post 7.8 build system cleanup plans perhaps?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 6, 2013 at 12:19 PM, Gabor Greif <span dir="ltr"><<a href="mailto:ggreif@gmail.com" target="_blank">ggreif@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Maybe DPH just should be left out of being built in the default target?<br>
<br>
Just an idea,<br>
<br>
   Gabor<br>
<div class="HOEnZb"><div class="h5"><br>
On 11/6/13, Ian Lynagh <<a href="mailto:igloo@earth.li">igloo@earth.li</a>> wrote:<br>
> On Wed, Nov 06, 2013 at 01:43:02PM +0000, Simon Peyton-Jones wrote:<br>
>> I'd like to make -XtemplateHaskell simply illegal in a stage-1 compiler.<br>
>> After all, it is!<br>
>> But for some reason we use the stage1 compiler to generate dependencies<br>
>> for the DPH libraries; those libraries have {-# LANGUAGE TemplateHaskell<br>
>> #-}, so the dependency generation fails.  See below.<br>
>> But WHY do we generate deps for DPH with stage1?  We don't *compile* the<br>
>> DPH libraries with stage1, because they need TH.  Can't we just generate<br>
>> deps with stage2?<br>
><br>
> It's due to the build system phases:<br>
> <a href="http://ghc.haskell.org/trac/ghc/wiki/Building/Architecture/Idiom/PhaseOrdering#GHCsphases" target="_blank">http://ghc.haskell.org/trac/ghc/wiki/Building/Architecture/Idiom/PhaseOrdering#GHCsphases</a><br>
><br>
> Stage2 doesn't exist during the phase in which DPH is configured.<br>
> Changing it to use stage 2 would probably mean adding another phase for<br>
> things that need to be configured by stage 2. This might mean slower<br>
> builds due to loss of parallelism, I'm not sure.<br>
><br>
> Perhaps the decision to build DPH with the GHC build system should be<br>
> revisited? It causes some complication, and it seems that more and more<br>
> people are disabling it anyway, in order to get faster builds.<br>
><br>
><br>
> Thanks<br>
> Ian<br>
><br>
> _______________________________________________<br>
> ghc-devs mailing list<br>
> <a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
> <a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/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://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/mailman/listinfo/ghc-devs</a><br>
</div></div></blockquote></div><br></div>