Document and export SEQUENCE:PROTOCOL-UNIMPLEMENTED
[sbcl.git] / make-host-1.lisp
blob54c08af14f113fa28eafc00a7fe6b15f9f7a1594
1 ;;; (We want to have some limit on print length and print level during
2 ;;; bootstrapping because PRINT-OBJECT only gets set up rather late,
3 ;;; and running without PRINT-OBJECT it's easy to fall into printing
4 ;;; enormous (or infinitely circular) low-level representations of
5 ;;; things.)
6 (setf *print-level* 5 *print-length* 5)
8 (progn (load "src/cold/shared.lisp")
9 (load "tools-for-build/ldso-stubs.lisp"))
10 (in-package "SB-COLD")
11 (setf *host-obj-prefix* "obj/from-host/")
12 (progn (load "src/cold/set-up-cold-packages.lisp")
13 (load "src/cold/defun-load-or-cload-xcompiler.lisp"))
15 (progn (set-dispatch-macro-character #\# #\+ #'she-reader)
16 (set-dispatch-macro-character #\# #\- #'she-reader))
18 ;; Supress function/macro redefinition warnings under clisp.
19 #+clisp
20 (progn (setf custom:*suppress-check-redefinition* t)
21 ;; A compilation-unit seems to kill the compile. I'm not sure if it's
22 ;; running out of memory or what. I don't care to find out,
23 ;; but it's most definitely the cause of the breakage.
24 (defmacro maybe-with-compilation-unit (&body forms)
25 `(progn ,@forms)))
26 #-clisp
27 (defmacro maybe-with-compilation-unit (&body forms)
28 `(with-compilation-unit () ,@forms))
30 (maybe-with-compilation-unit
31 (load-or-cload-xcompiler #'host-cload-stem)
33 ;;; Let's check that the type system, and various other things, are
34 ;;; reasonably sane. (It's easy to spend a long time wandering around
35 ;;; confused trying to debug cross-compilation if it isn't.)
36 (when (find :sb-test *shebang-features*)
37 (load "tests/type.before-xc.lisp")
38 (load "tests/info.before-xc.lisp")
39 (load "tests/vm.before-xc.lisp"))
40 ;; When building on a slow host using a slow Lisp,
41 ;; the wait time in slurp-ucd seems interminable - over a minute.
42 ;; Compiling seems to help a bit, but maybe it's my imagination.
43 (load (compile-file "tools-for-build/ucd.lisp"))
45 ;;; Generate character database tables.
46 (dolist (s '(sb-cold::slurp-ucd sb-cold::slurp-proplist sb-cold::output))
47 (funcall s))
49 ;;; propagate structure offset and other information to the C runtime
50 ;;; support code.
51 (host-cload-stem "src/compiler/generic/genesis" nil)
52 ) ; END with-compilation-unit
54 (sb!vm:genesis :c-header-dir-name "src/runtime/genesis")
55 #+cmu (ext:quit)
56 #+clisp (ext:quit)
57 #+abcl (ext:quit)