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 += \