summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-07-26 16:42:01 +0000
committerIan Lynagh <igloo@earth.li>2007-07-26 16:42:01 +0000
commitf83010b119096699d1efef2f7bb45460719c48f9 (patch)
tree3155c3c7c90361b7c0e61dcc56e8aa08d3e9d246
parentded67816a2baf995081d1772aa7d83c7e51a284b (diff)
downloadhaskell-f83010b119096699d1efef2f7bb45460719c48f9.tar.gz
Link with hpc even if GhcWithInterpreter is not set
-rw-r--r--compiler/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/compiler/Makefile b/compiler/Makefile
index 0b84536030..252da0d08c 100644
--- a/compiler/Makefile
+++ b/compiler/Makefile
@@ -410,11 +410,16 @@ endif
# enabled when we are bootstrapping with the same version of GHC, and
# the interpreter is supported on this platform.
+ifeq "$(bootstrapped)" "YES"
+SRC_HC_OPTS += -package hpc
+PKG_DEPENDS += hpc
+endif
+
ifeq "$(GhcWithInterpreter) $(bootstrapped)" "YES YES"
# Yes, include the interepreter, readline, and Template Haskell extensions
-SRC_HC_OPTS += -DGHCI -package template-haskell -package hpc
-PKG_DEPENDS += template-haskell hpc
+SRC_HC_OPTS += -DGHCI -package template-haskell
+PKG_DEPENDS += template-haskell
# Should GHCI be building info tables in the TABLES_NEXT_TO_CODE style
# or not?