Commit e0b006bb authored by Simon Marlow's avatar Simon Marlow

Fix the DPH package cleaning/profiled mess even more (the build was broken)

parent ea0bfdad
......@@ -101,6 +101,10 @@ endif
ifneq "$(CLEANING)" "YES"
# -----------------------------------------------------------------------------
# Misc GNU make utils
......@@ -351,27 +355,27 @@ $(foreach pkg,$(EXTRA_PACKAGES),$(eval $(call addPackage,$(pkg))))
# ------------------- Adding DPH packaes ---------------
DPH_PACKAGES = dph/dph-base \
# The DPH packages are added when:
# * not BootingFromHc (they aren't necessary for bootstrapping), and
# * not GhcProfiled (they need TH, so can't be compiled by a -prof GHC), or
# * CLEANING: when cleaning we always enable everything
# if !BootingFromHc && (!GhcProfiled || CLEANING)
ifneq "$(BootingFromHc)" "YES"
ifneq "$(GhcProfiled) $(CLEANING)" "NO YES"
PACKAGES_STAGE2 += dph/dph-base \
dph/dph-prim-interface \
dph/dph-prim-seq \
dph/dph-prim-par \
dph/dph-seq \
ifneq "$(BootingFromHc)" "YES"
ifeq "$(CLEANING)" "YES"
# If we are cleaning we must add DPH packages regardless,
# for reasons we now forget
else # not CLEANING
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
endif # GhcProfiled
endif # Cleaning
endif # BootingFromHc
# -------------------------------------------------------
# We assume that the stage0 compiler has a suitable bytestring package,
# so we don't have to include it below.
BOOT_PKGS = Cabal hpc extensible-exceptions binary bin-package-db
Markdown is supported
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