From 3d80517affefabf7aac92262a7d9eb6077a7ada6 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Thu, 19 Aug 2010 13:13:46 +0000 Subject: [PATCH] Fix cleaning when GhcProfiled = YES We need to include the DPH cleaning rules, even though we don't build DPH when GhcProfiled = YES. --- ghc.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc.mk b/ghc.mk index 2359c82..89de086 100644 --- 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 += \ -- 1.7.10.4