Adjust freeze script

Now that CCL/SBCL fasl binary equivalence is tracked by CI, make
building from CCL optional during freeze, and build locally using
CLISP instead.
This commit is contained in:
Christophe Rhodes 2022-04-22 15:46:49 +01:00
parent 3afb807d0b
commit aea6f6d342

View file

@ -23,6 +23,7 @@ usage: $0 VERSION
SBCL_RELEASE_DIR: Absolute path to directory containing all the build SBCL_RELEASE_DIR: Absolute path to directory containing all the build
artifacts. If not defined, a new build directory is created in \$PWD. artifacts. If not defined, a new build directory is created in \$PWD.
CCL: Path to Clozure Common Lisp, suitable as an argument to make.sh CCL: Path to Clozure Common Lisp, suitable as an argument to make.sh
CLISP: Path to CLISP, suitable as an argument to make.sh
EOF EOF
exit 1 exit 1
} }
@ -40,9 +41,9 @@ then
usage "Extra command-line arguments: $@" usage "Extra command-line arguments: $@"
fi fi
if [ -z "$CCL" ] if [ -z "$CLISP" ]
then then
usage "CCL environment variable not set" usage "CLISP environment variable not set"
fi fi
SBCL_RELEASE_DIR=${SBCL_RELEASE_DIR:-$(mktemp -d $PWD/sbcl-release-dir-$(date +%Y%m%d)-XXXXXXXXX)} SBCL_RELEASE_DIR=${SBCL_RELEASE_DIR:-$(mktemp -d $PWD/sbcl-release-dir-$(date +%Y%m%d)-XXXXXXXXX)}
@ -131,6 +132,7 @@ fi
# check build from ccl # check build from ccl
if [ -n "$CCL" ]; then
if [ ! -d $SBCL_RELEASE_DIR/obj_from-xc_ccl ]; then if [ ! -d $SBCL_RELEASE_DIR/obj_from-xc_ccl ]; then
cd $SBCL_DIR cd $SBCL_DIR
sh clean.sh sh clean.sh
@ -139,10 +141,20 @@ if [ ! -d $SBCL_RELEASE_DIR/obj_from-xc_ccl ]; then
mv $SBCL_DIR/obj/from-xc obj_from-xc_ccl mv $SBCL_DIR/obj/from-xc obj_from-xc_ccl
fi fi
fi
# TODO: check binary-equality between ccl, sbcl objs if [ ! -d $SBCL_RELEASE_DIR/obj_from-xc_clisp ]; then
cd $SBCL_DIR
sh clean.sh
nice -20 ./make.sh "$CLISP" >> $LOGFILE 2>&1
cd $SBCL_RELEASE_DIR
# TODO: check build from clisp, abcl mv $SBCL_DIR/obj/from-xc obj_from-xc_clisp
fi
# TODO: check binary-equality between ccl, clisp, sbcl objs
# TODO: check build from abcl, ecl
# upload rc build # upload rc build