We need to include the DPH cleaning rules, even though we don't build DPH
when GhcProfiled = YES.
ifneq "$(BootingFromHc)" "YES"
ifneq "$(BootingFromHc)" "YES"
-ifneq "$(GhcProfiled)" "YES"
+ifneq "$(CLEANING) $(GhcProfiled)" "NO 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 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 += \