Commit c9020b2b authored by's avatar
Browse files

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))
$(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
dph/dph-base \
dph/dph-prim-interface \
......@@ -353,6 +357,7 @@ PACKAGES_STAGE2 += \
dph/dph-seq \
# We assume that the stage0 compiler has a suitable bytestring package,
# so we don't have to include it below.
Supports Markdown
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