diff --git a/.travis.yml b/.travis.yml index 533f764..99a7185 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ before_script: - make "CL=$LISP" clones save script: - - PGUSER=pgloader make "CL=$LISP" check + - PGUSER=pgloader make "CL=$LISP" check-saved notifications: email: diff --git a/Makefile b/Makefile index e5d89b8..c5cdc32 100644 --- a/Makefile +++ b/Makefile @@ -173,7 +173,7 @@ test: $(PGLOADER) save: ./src/save.lisp $(LISP_SRC) $(CL) $(CL_OPTS) --load ./src/save.lisp -check-saved: save +check-saved: $(MAKE) PGLOADER=$(realpath $(PGLOADER)) CL=$(CL) -C test regress clean-bundle: diff --git a/src/save.lisp b/src/save.lisp index 3623f06..def2492 100644 --- a/src/save.lisp +++ b/src/save.lisp @@ -77,9 +77,8 @@ :toplevel-function #'cl-user::pgloader-image-main :prepend-kernel t) #+sbcl - (let ((compression (when (member :sb-core-compression cl:*features*) t))) - (sb-ext:save-lisp-and-die image-filename - :toplevel #'cl-user::pgloader-image-main - :executable t - :save-runtime-options t - :compression compression))) + (sb-ext:save-lisp-and-die image-filename + :toplevel #'cl-user::pgloader-image-main + :executable t + :save-runtime-options t + :compression (uiop:featurep :sb-core-compression)))