diff options
author | simonpj@microsoft.com <unknown> | 2010-08-13 14:00:21 +0000 |
---|---|---|
committer | simonpj@microsoft.com <unknown> | 2010-08-13 14:00:21 +0000 |
commit | c9020b2b6b0bee7ebe6f7bb0ba1b93680b0922c5 (patch) | |
tree | 20972a25b5edce22aebf731d47ac4f8199bbeb15 | |
parent | 6efa3901fd6f1583fb654bd3659e88702dfd579a (diff) | |
download | haskell-c9020b2b6b0bee7ebe6f7bb0ba1b93680b0922c5.tar.gz |
Do not build DPH when GhcProfiled (fixes #4172)
Reason: DPH uses Template Haskell and TH doesn't work
in a profiled compiler
-rw-r--r-- | ghc.mk | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -345,6 +345,10 @@ $(eval $(call addPackage,haskeline)) $(foreach pkg,$(EXTRA_PACKAGES),$(eval $(call addPackage,$(pkg)))) ifneq "$(BootingFromHc)" "YES" + +ifneq "$(GhcProfiled)" "YES" +# DPH uses Template Haskell, and Template Haskell doesn't work +# with a profiled compiler. So if stage-2 is profile, don't build DPH PACKAGES_STAGE2 += \ dph/dph-base \ dph/dph-prim-interface \ @@ -353,6 +357,7 @@ PACKAGES_STAGE2 += \ dph/dph-seq \ dph/dph-par endif +endif # We assume that the stage0 compiler has a suitable bytestring package, # so we don't have to include it below. |