Fix handling of few or no xrefs in REPACK-XREF
[sbcl.git] / make-genesis-2.lisp
blob3877f7bc358dff654b221d27caeebcbbbf578ae8
1 (setf *print-level* 5 *print-length* 5)
2 (load "src/cold/shared.lisp")
3 (in-package "SB-COLD")
4 (setf *host-obj-prefix* "obj/from-host/"
5 *target-obj-prefix* "obj/from-xc/")
6 (load "src/cold/set-up-cold-packages.lisp")
7 (load "src/cold/defun-load-or-cload-xcompiler.lisp")
8 (load-or-cload-xcompiler #'host-load-stem)
9 (defparameter *target-object-file-names*
10 (with-open-file (s "output/object-filenames-for-genesis.lisp-expr"
11 :direction :input)
12 (read s)))
13 (host-cload-stem "src/compiler/generic/genesis" nil)
15 (defparameter *preload-object-file*
16 (or #!+read-only-tramps
17 (stem-remap-target
18 "obj/from-xc/src/assembly/target/tramps.assem-obj")
19 nil))
21 (sb!vm:genesis :object-file-names *target-object-file-names*
22 :preload-file *preload-object-file*
23 :c-header-dir-name "output/genesis-2"
24 :symbol-table-file-name "src/runtime/sbcl.nm"
25 :core-file-name "output/cold-sbcl.core"
26 ;; The map file is not needed by the system, but can be
27 ;; very handy when debugging cold init problems.
28 :map-file-name "output/cold-sbcl.map")
29 #+cmu (ext:quit)
30 #+clisp (ext:quit)
31 #+abcl (ext:quit)