From: David Lichteblau Date: Tue, 12 Jul 2011 09:15:31 +0000 (+0200) Subject: Tweak slam.sh to be slightly more configurable regarding the host binary X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=60bb50897fc86c127c4598e26be4fc3b3b7a0704;p=sbcl.git Tweak slam.sh to be slightly more configurable regarding the host binary Developers building with an existing SBCL as a host, which is not installed as "sbcl" in the path, or which needs a --core option, can now set XC_LISP and XC_CORE prior to invoking slam.sh. Previously, such a host could only be used with slam.sh after custom modifications to the script. The default behaviour is unchanged. --- diff --git a/slam.sh b/slam.sh index 63108f3..202c8aa 100644 --- a/slam.sh +++ b/slam.sh @@ -79,7 +79,7 @@ case "$HOST_TYPE" in INIT="-noinit" CORE="-core" ;; - sbcl) LISP="sbcl" + sbcl) LISP="${XC_LISP:-sbcl}" INIT="--no-sysinit --no-userinit" CORE="--core" ;; @@ -97,7 +97,7 @@ case "$HOST_TYPE" in exit 1 esac -SBCL_XC_HOST="$LISP $INIT" +SBCL_XC_HOST="$LISP ${XC_CORE:+$CORE $XC_CORE} $INIT" export SBCL_XC_HOST # (We don't do make-host-1.sh at all. Hopefully nothing relevant has