Commit c9020b2b authored by simonpj@microsoft.com's avatar simonpj@microsoft.com

Do not build DPH when GhcProfiled (fixes #4172)

Reason: DPH uses Template Haskell and TH doesn't work 
in a profiled compiler
parent 6efa3901
...@@ -345,6 +345,10 @@ $(eval $(call addPackage,haskeline)) ...@@ -345,6 +345,10 @@ $(eval $(call addPackage,haskeline))
$(foreach pkg,$(EXTRA_PACKAGES),$(eval $(call addPackage,$(pkg)))) $(foreach pkg,$(EXTRA_PACKAGES),$(eval $(call addPackage,$(pkg))))
ifneq "$(BootingFromHc)" "YES" 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 += \ PACKAGES_STAGE2 += \
dph/dph-base \ dph/dph-base \
dph/dph-prim-interface \ dph/dph-prim-interface \
...@@ -353,6 +357,7 @@ PACKAGES_STAGE2 += \ ...@@ -353,6 +357,7 @@ PACKAGES_STAGE2 += \
dph/dph-seq \ dph/dph-seq \
dph/dph-par dph/dph-par
endif endif
endif
# We assume that the stage0 compiler has a suitable bytestring package, # We assume that the stage0 compiler has a suitable bytestring package,
# so we don't have to include it below. # so we don't have to include it below.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment