Fix cleaning when GhcProfiled = YES
[ghc-hetmet.git] / ghc.mk
diff --git a/ghc.mk b/ghc.mk
index 2359c82..89de086 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -351,7 +351,7 @@ $(foreach pkg,$(EXTRA_PACKAGES),$(eval $(call addPackage,$(pkg))))
 
 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 += \