lisp/build-binary.sh @ c0175626e056

More
author Steve Losh <steve@stevelosh.com>
date Wed, 27 Mar 2024 11:49:51 -0400
parents 301dff61cd7b
children (none)
#!/usr/bin/env bash

set -euo pipefail

LISP=$1
NAME=$(basename "$1" .lisp)
shift

sbcl --load "$LISP" \
    --eval "(sb-ext:save-lisp-and-die \"$NAME\"
              :executable t
              :compression t
              :save-runtime-options t
              :toplevel '$NAME:toplevel)"