
This sort of ties into some of the post 7.8 build system cleanup plans
perhaps?
On Wed, Nov 6, 2013 at 12:19 PM, Gabor Greif
Maybe DPH just should be left out of being built in the default target?
Just an idea,
Gabor
On 11/6/13, Ian Lynagh
wrote: On Wed, Nov 06, 2013 at 01:43:02PM +0000, Simon Peyton-Jones wrote:
I'd like to make -XtemplateHaskell simply illegal in a stage-1 compiler. After all, it is! But for some reason we use the stage1 compiler to generate dependencies for the DPH libraries; those libraries have {-# LANGUAGE TemplateHaskell #-}, so the dependency generation fails. See below. But WHY do we generate deps for DPH with stage1? We don't *compile* the DPH libraries with stage1, because they need TH. Can't we just generate deps with stage2?
It's due to the build system phases:
http://ghc.haskell.org/trac/ghc/wiki/Building/Architecture/Idiom/PhaseOrderi...
Stage2 doesn't exist during the phase in which DPH is configured. Changing it to use stage 2 would probably mean adding another phase for things that need to be configured by stage 2. This might mean slower builds due to loss of parallelism, I'm not sure.
Perhaps the decision to build DPH with the GHC build system should be revisited? It causes some complication, and it seems that more and more people are disabling it anyway, in order to get faster builds.
Thanks Ian
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs