Multiple ways to output compressed images

This commit is contained in:
Benson Chu 2024-09-22 12:32:04 -05:00
parent 80ece67f77
commit 5d7fbb3938
2 changed files with 16 additions and 0 deletions

10
build-sbcl.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
# The dumped binary calls SERVER-CONFIG2:LAUNCH-SERVICE which
# processes the configuration file, startup options and allows the
# user to choose which service to start.
sbcl --non-interactive --disable-debugger \
--load ./pegrep.asd \
--eval '(asdf:load-system :pegrep)'\
--eval "(sb-ext:save-lisp-and-die \"pegrep\" :toplevel #'pegrep:entry :executable t :compression t)"

View file

@ -1,5 +1,11 @@
(require 'asdf)
#+sb-core-compression
(defmethod asdf:perform ((o asdf:image-op) (c asdf:system))
(uiop:dump-image (asdf:output-file o c)
:executable t
:compression t))
(defmacro def-pegrep (name &rest args)
`(asdf:defsystem ,name
:serial t