src/Makefile.in: Use large heap when finishing cross-compilation.
authorMatt Birkholz <matt@birchwood-abbey.net>
Wed, 20 Sep 2017 00:22:15 +0000 (17:22 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Wed, 20 Sep 2017 00:22:15 +0000 (17:22 -0700)
src/Makefile.in
src/configure.ac

index c568901cfb4de38e0d224faa0a878f37fffdfaf5..894c18d1f5173c72ea377141dac663104fff3271 100644 (file)
@@ -684,11 +684,13 @@ cross-end: cross-host
         echo '  (load "../compiler/base/crsend" env)' && \
         echo '  ((access FINISH-CROSS-COMPILATION:FILES env) ".."))') \
        | (cd runtime && ../microcode/scheme --batch-mode --library ../lib \
+                                            $(TOOL_TOOLCHAIN_HEAP) \
                                             --fasl make.bin)
        (echo '(let ((env (->environment (quote (RUNTIME)))))' && \
         echo '  (load "../compiler/base/crsend" env)' && \
         echo '  ((access FINISH-CROSS-COMPILATION:INFO-FILES env) ".."))') \
         | (cd runtime && ../microcode/scheme --batch-mode --library ../lib \
+                                             $(TOOL_TOOLCHAIN_HEAP) \
                                              --fasl make.com)
 
 # **** Legacy serialized targets ****
index 7d601765673e77e7d647edee008328b292ec3005..2856940ae339b41377bc662abce9aa2c29a2f387 100644 (file)
@@ -182,10 +182,14 @@ directory, which is usually \`/usr/local/lib/mit-scheme-${mit_scheme_native_code
 fi
 
 # A 32bit host running LIAR/svm needs a large heap.
+# A 64bit host running LIAR/svm failed to finish-cross-compilation:info-files.
 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"
+if test x"${mit_scheme_native_code}" = xsvm1; then
+    if ${MIT_SCHEME_EXE} --eval "(%exit (if ${small_words} 0 1))"; then
+       TOOL_TOOLCHAIN_HEAP="--heap 10000"
+    else
+       TOOL_TOOLCHAIN_HEAP="--heap 20000"
+    fi
 fi
 
 AC_SUBST([DEFAULT_TARGET])