The default heap (4096Kw) is exhausted compiling xml-parser.bin.
@IF_CROSS@COMPILER_SETTINGS_CROSS = (set! compiler:cross-compiling? true)
@IF_LIARC@COMPILER_SETTINGS_LIARC = (set! compiler:invoke-c-compiler? false)
+TOOL_TOOLCHAIN_HEAP = @TOOL_TOOLCHAIN_HEAP@
TOOL_COMPILER_SETTINGS = \
$(COMPILER_SETTINGS_CROSS) \
TOOL_COMPILER = $(TOOL_TOOLCHAIN)
TOOL_SYNTAXER = $(HOST_SCHEME) --band $(TOOLCHAIN)/syntaxer.com
TOOL_TOOLCHAIN = $(HOST_SCHEME) --band $(TOOLCHAIN)/compiler.com \
+ $(TOOL_TOOLCHAIN_HEAP) \
--eval '(begin $(TOOL_COMPILER_SETTINGS))'
.PHONY: toolchain
fi
fi
+# A 32bit host running LIAR/svm needs a large heap.
+small_words='(= 4 (vector-ref (gc-space-status) 0))'
+if test x"${mit_scheme_native_code}" = xsvm1 \
+ && ${MIT_SCHEME_EXE} --eval "(%exit (if ${small_words} 0 1))"; then \
+ TOOL_TOOLCHAIN_HEAP="--heap 10000"
+fi
+
AC_SUBST([DEFAULT_TARGET])
AC_SUBST([ALL_TARGET])
AC_SUBST([INSTALL_COM])
AC_SUBST([IF_LIARC])
AC_SUBST([IF_NOT_DEBUG_TOOLCHAIN])
AC_SUBST([IF_SVM])
+AC_SUBST([TOOL_TOOLCHAIN_HEAP])
AC_PROG_INSTALL
AC_PROG_LN_S