0.9.12.4:
[sbcl/lichteblau.git] / make-target-2.lisp
blob9a82e37012a8742711384732590bc241b5f667db
1 ;;; Now that we use the compiler for macros, interpreted /SHOW doesn't
2 ;;; work until later in init.
3 #+sb-show (print "/hello, world!")
5 ;;; Until PRINT-OBJECT and other machinery is set up, we want limits
6 ;;; on printing to avoid infinite output. (Don't forget to undo these
7 ;;; tweaks after the printer is set up. It'd be cleaner to use LET to
8 ;;; make sure that happens automatically, but LET is implemented in
9 ;;; terms of the compiler, and the compiler isn't initialized yet.)
10 (setq *print-length* 10)
11 (setq *print-level* 5)
12 (setq *print-circle* t)
14 ;;; Do warm init.
15 #+sb-show (print "/about to LOAD warm.lisp")
16 (load "src/cold/warm.lisp")
18 ;;; Unintern no-longer-needed stuff before the possible PURIFY in
19 ;;; SAVE-LISP-AND-DIE.
20 #-sb-fluid (sb-impl::!unintern-init-only-stuff)
22 ;;; Now that the whole system is built, we don't need to hobble the
23 ;;; printer any more, so we can restore printer control variables to
24 ;;; their ANSI defaults.
25 (setq *print-length* nil)
26 (setq *print-level* nil)
27 (setq *print-circle* nil)
29 (sb-int:/show "done with warm.lisp, about to GC :FULL T")
30 (gc :full t)
32 ;;; resetting compilation policy to neutral values in preparation for
33 ;;; SAVE-LISP-AND-DIE as final SBCL core (not in warm.lisp because
34 ;;; SB-C::*POLICY* has file scope)
35 (sb-int:/show "setting compilation policy to neutral values")
36 (proclaim
37 '(optimize
38 (compilation-speed 1) (debug 1) (inhibit-warnings 1)
39 (safety 1) (space 1) (speed 1)))
41 ;;; Lock internal packages
42 #+sb-package-locks
43 (dolist (p (list-all-packages))
44 (unless (member p (mapcar #'find-package '(:keyword :cl-user)))
45 (lock-package p)))
47 (sb-int:/show "done with warm.lisp, about to SAVE-LISP-AND-DIE")
48 ;;; Even if /SHOW output was wanted during build, it's probably
49 ;;; not wanted by default after build is complete. (And if it's
50 ;;; wanted, it can easily be turned back on.)
51 #+sb-show (setf sb-int:*/show* nil)
52 ;;; The system is complete now, all standard functions are
53 ;;; defined.
54 (sb-kernel::ctype-of-cache-clear)
55 (setq sb-c::*flame-on-necessarily-undefined-function* t)
56 (sb-ext:save-lisp-and-die "output/sbcl.core")