sbcl.sbcl/loader.lisp
Stas Boukarev 285ee63e88 Make the build process abortable.
Wrap everything with an abort restart which will quit and stop make.sh
from proceeding.

Also remove --disable-debugger from the default sbcl options for
better debugging.
2016-10-04 22:17:34 +03:00

15 lines
442 B
Common Lisp

(defun load-sbcl-file (file)
(labels ((exit-sbcl (code)
#+sbcl (sb-ext:exit :code code)
#+clisp (ccl:quit code)
#+abcl (ext:quit :status code)
#+cmucl (unix:unix-exit code)
#+ecl (si:quit code)
(return-from load-sbcl-file)))
(restart-case
(load file)
(abort ()
:report "Abort building SBCL."
(exit-sbcl 1)))
(exit-sbcl 0)))