pass 80M up as TWEAKED_SIZE in MAKE_FLAGS, so that it's easier to fiddle

with.
This commit is contained in:
espie 2003-08-21 19:51:23 +00:00
parent 18a59a2386
commit 6515495ef8
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.9 2003/08/14 21:38:36 avsm Exp $
# $OpenBSD: Makefile,v 1.10 2003/08/21 19:51:23 espie Exp $
# Based on Simon Marlow's port script for FreeBSD:
# $FreeBSD: ports/lang/ghc/Makefile,v 1.13 2002/08/22 12:53:38 obraun Exp $
#
@ -67,6 +67,9 @@ USE_GMAKE= Yes
CONFIGURE_STYLE=gnu dest
CONFIGURE_ARGS= --with-ghc=${STAGE0}/ghc/driver/ghc-inplace
# XXX fiddle with this if the 4.08 compiler burps for you
MAKE_FLAGS= TWEAKED_SIZE=80M
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
LOCALBASE="${LOCALBASE}"

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-ghc_compiler_Makefile,v 1.2 2003/08/01 14:03:40 avsm Exp $
$OpenBSD: patch-ghc_compiler_Makefile,v 1.3 2003/08/21 19:51:23 espie Exp $
Note: -H sets the initial size of the garbage collected heap used
by the compiler to compiled a Haskell file. There appears to be
some kind of garbage collection bug in the stage1 compiler build
@ -21,7 +21,7 @@ was determined experimentally.
SRC_CC_OPTS += -Iparser -I. -O
SRC_HC_OPTS += -recomp $(GhcHcOpts) $(GhcStage$(stage)HcOpts)
-SRC_HC_OPTS += -H16M
+SRC_HC_OPTS += -H80M
+SRC_HC_OPTS += -H${TWEAKED_SIZE}
ifeq "$(BootingFromHc)" "YES"
SRC_CC_OPTS += -D__GLASGOW_HASKELL__=$(ProjectVersionInt)