GhcCompilerWays =
-FptoolsHcOpts = -H32m $(MyWarningOpts)
+SRC_HC_OPTS = -H32m -O0 $(MyWarningOpts)
GhcHcOpts = -Rghc-timing -DDEBUG
-GhcLibHcOpts = -dcore-lint -O -H32m $(MyWarningOpts) -keep-hc-files
+GhcLibHcOpts = -dcore-lint $(MyWarningOpts) -keep-hc-files
GhcLibWays =
# Debugging RTS
ifeq "$(BuildFlavour)" "perf"
-FptoolsHcOpts = -H32m -O $(MyWarningOpts)
+SRC_HC_OPTS = -H32m -O $(MyWarningOpts)
GhcHcOpts = -Rghc-timing
-GhcLibHcOpts = -H32m -O $(MyWarningOpts)
+GhcLibHcOpts =
GhcLibWays = p
# used to compile GHC. Useful when bootstrapping.
GhcHcOpts=-Rghc-timing
-# Extra Haskell compiler options to use when compiling all Haskell
-# *programs* (not libraries), including GHC itself.
-# Typical options to use here:
-#
-# -H25m use a bigger heap (to speed up compilation)
-#
-# -O compile an optimised compiler
-#
-FptoolsHcOpts=-O
-
# Build a compiler that will build *unregisterised* libraries and
# binaries by default. Unregisterised code is supposed to compile and
# run without any support for architecture-specific assembly mangling,
ifneq "$(findstring $(HostOS_CPP), mingw32 cygwin32 linux solaris2 freebsd netbsd openbsd)" ""
GhcWithInterpreter=YES
-ifeq "$(HaveLibDL)" "YES"
-SRC_HC_OPTS += -ldl
-endif
else
GhcWithInterpreter=NO
endif
#
# SRC_HC_OPTS += -O
+SRC_HC_OPTS += -H16m -O
+
# These flags make flex 8-bit
SRC_FLEX_OPTS += -8
$(HS_PROG) :: $(HS_OBJS)
$(CC) -o $@ $(HC_BOOT_CC_OPTS) $(HC_BOOT_LD_OPTS) $(HS_OBJS) $(HC_BOOT_LIBS)
endif
-
-# for building a Haskell program, we add FptoolsHcOpts
-SRC_HC_OPTS += $(FptoolsHcOpts)
endif
#----------------------------------------