hppa: Enable :stack-allocated-closures by default
[sbcl.git] / make-host-1.lisp
blobc936a639054812b706dd8b8901065168f9f68169
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 (sb-cold::slurp-ucd)
47 (sb-cold::slurp-proplist)
48 (sb-cold::output)
50 ;;; propagate structure offset and other information to the C runtime
51 ;;; support code.
52 (host-cload-stem "src/compiler/generic/genesis" nil)
53 ) ; END with-compilation-unit
55 (sb!vm:genesis :c-header-dir-name "src/runtime/genesis")
56 #+cmu (ext:quit)
57 #+clisp (ext:quit)
58 #+abcl (ext:quit)