Fix building on older SBCL hosts

* Two parts here.  First, older SBCL hosts use SB-EXT:QUIT, not
SB-EXT:EXIT.  Second, there's some odd undefined-function warning
that crops up (probably from an inlined TYPEP test or even an
implicit type test) on the host from (SATISFIES FDEFN-P).

  * This doesn't get the parallel build working, but at least the
more usual single-threaded build works on 1.0.23 with these
changes.
This commit is contained in:
Alastair Bridgewater 2016-10-10 11:13:15 -04:00
parent 9b30230839
commit 22e70b0ef5
2 changed files with 9 additions and 1 deletions

View file

@ -1,6 +1,9 @@
(defun load-sbcl-file (file)
(labels ((exit-sbcl (code)
#+sbcl (sb-ext:exit :code code)
#+sbcl #.(if (eq :external
(nth-value 1 (find-symbol "EXIT" :sb-ext)))
`(,(find-symbol "EXIT" :sb-ext) :code code)
`(,(find-symbol "QUIT" :sb-ext) :unix-status code))
#+ccl (ccl:quit code)
#+abcl (ext:quit :status code)
#+cmucl (unix:unix-exit code)

View file

@ -198,3 +198,8 @@
;;; Avoid an unknown type reference from globaldb.
(deftype fdefn () '(satisfies fdefn-p))
;;; Avoid an unknown function reference from globaldb on some build
;;; hosts. It doesn't really matter what this function does: we don't
;;; have FDEFN objects on the host anyway.
(defun fdefn-p (x) (declare (ignore x)) nil)