Multiple ways to output compressed images
This commit is contained in:
parent
80ece67f77
commit
5d7fbb3938
2 changed files with 16 additions and 0 deletions
10
build-sbcl.sh
Executable file
10
build-sbcl.sh
Executable 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)"
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue