fix make-c-runtime.sh to work with other hosts.

This commit is contained in:
Manuel Giraud 2020-06-23 17:16:13 +02:00 committed by Douglas Katzman
parent 30db471f50
commit 7c0b715e75

View file

@ -3,14 +3,11 @@
# Load our build configuration
. output/build-config
# This script is supposed to be host-agnostic, but unfortunately in testing
# I have found it to be sensitive to the host in the following ways:
# - using CCL it gets "Error: Incorrect keyword arguments in (:TEST EQ T)."
# - using CLISP it prints "WARNING: cross-compiler type ambiguity" 540 times.
# We could make this use the target SBCL as the new host,
# but that somewhat defeats the purpose.
time $SBCL_XC_HOST --noinform --no-userinit --no-sysinit --noprint <<EOF
# This script has been tested with CLISP, ECL and SBCL (of course).
# Running with CCL it gets:
# > Error: Class is not yet defined or was undefined: CTYPE
# > While executing: COMPILER-LAYOUT-OR-LOSE, in process listener(1).
time $SBCL_XC_HOST <<EOF
(load "src/cold/shared.lisp")
(load "src/cold/set-up-cold-packages.lisp")
(load "tools-for-build/corefile.lisp")
@ -27,4 +24,4 @@ EOF
diff -r output/genesis-2 src/runtime/genesis
(cd src/runtime ; make)
(cd src/runtime ; $GNUMAKE)