# Setting the GHC compile options
SRC_HC_OPTS += -cpp -fglasgow-exts $(GhcLibHcOpts)
-ifneq "$(ILXized)" "YES"
SRC_HSC2HS_OPTS += -Icbits
-endif
ifdef USE_REPORT_PRELUDE
SRC_HC_OPTS += -DUSE_REPORT_PRELUDE=1
PrelIO_HC_OPTS += -fno-ignore-asserts
# Special options
-PrelStorable_HC_OPTS = -monly-3-regs
+# TODO: remove -H80M when the strictness analyser is working again.
+PrelStorable_HC_OPTS = -monly-3-regs -H80M
PrelCError_HC_OPTS = +RTS -K4m -RTS
-PrelInt_HC_OPTS = -monly-3-regs
-PrelWord_HC_OPTS = -monly-3-regs
+PrelInt_HC_OPTS = -H80M # -monly-3-regs
+PrelWord_HC_OPTS = -H80M # -monly-3-regs
+PrelFloat_HC_OPTS = -H80M
+PrelRead_HC_OPTS = -H80M
+PrelHandle_HC_OPTS = -H80M
+Time_HC_OPTS = -H80M
#-----------------------------------------------------------------------------
# Dependency generation
# Rules
PrelPrimopWrappers.hs: ../../compiler/prelude/primops.txt
- rm -f PrelPrimopWrappers.hs
- ../../utils/genprimopcode/genprimopcode --make-haskell-wrappers \
- < ../../compiler/prelude/primops.txt > PrelPrimopWrappers.hs
+ rm -f $@
+ ../../utils/genprimopcode/genprimopcode --make-haskell-wrappers < $< > $@
PrelGHC.$(way_)hi : PrelGHC.hi-boot
cp $< $@
all :: PrelMain.dll_o
endif
-CLEAN_FILES += PrelGHC.hi $(foreach way, $(WAYS), PrelGHC.$(way)_hi)
+CLEAN_FILES += PrelGHC.hi-boot PrelGHC.hi $(foreach way, $(WAYS), PrelGHC.$(way)_hi)
#-----------------------------------------------------------------------------
# The procedure differs from that in fptools/mk/target.mk in two ways:
# (a) we don't want PrelMain in the GHCi std library
# (b) on Win32 we must split it into two, because a single .o file can't
+# have more than 65536 relocations in it.
#
# we don't want PrelMain in the GHCi library.
include $(TOP)/mk/target.mk
+# PrelIO.hsc includes PrelHandle_hsc.h
+PrelIO.hsc : PrelHandle_hsc.h
+
+