summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2006-11-09 10:17:53 +0000
committerSimon Marlow <simonmar@microsoft.com>2006-11-09 10:17:53 +0000
commit27218ba74f28c527e0b3e88195169b6949d98899 (patch)
tree2419ef6ded31dcb6e73b5019665257c31a71a94b
parentfb0318e2bbe527464ed6d19cc292121fe88b2636 (diff)
downloadhaskell-27218ba74f28c527e0b3e88195169b6949d98899.tar.gz
use the right $(HC) for stage 3
-rw-r--r--compiler/Makefile3
-rw-r--r--mk/package.mk2
2 files changed, 5 insertions, 0 deletions
diff --git a/compiler/Makefile b/compiler/Makefile
index c77dc5f5cf..6c83f9cd8c 100644
--- a/compiler/Makefile
+++ b/compiler/Makefile
@@ -858,6 +858,9 @@ HS_IFACES = $(addsuffix .$(way_)hi,$(basename $(HS_OBJS)))
# Haddock can't handle recursive modules currently, so we disable it for now.
NO_HADDOCK_DOCS = YES
+# Tell package.mk not to set $(HC)
+NO_SET_HC = YES
+
# The stage 2 GHC binary itself is built by compiling main/Main.hs
# (the same as used in stage 1) against the GHC package.
#
diff --git a/mk/package.mk b/mk/package.mk
index e2058f799c..e89256608f 100644
--- a/mk/package.mk
+++ b/mk/package.mk
@@ -141,7 +141,9 @@ endif # $(way) == ""
SRC_HSC2HS_OPTS += -I.
+ifneq "$(NO_SET_HC)" "YES"
HC = $(GHC_INPLACE)
+endif
IGNORE_PACKAGE_FLAG = -package-name $(PACKAGE)-$(VERSION)
ifeq "$(NON_HS_PACKAGE)" ""