Fix friggin cl:fixnum vs sb-xc:fixnum screwup
[sbcl.git] / make-c-runtime.sh
blobc8a5ba7c6286342c05bc83a54e080c9b6bb5e52b
1 #!/bin/sh
3 # Load our build configuration
4 . output/build-config
6 # This script has been tested with CLISP, ECL and SBCL (of course).
7 # Running with CCL it gets:
8 # > Error: Class is not yet defined or was undefined: CTYPE
9 # > While executing: COMPILER-LAYOUT-OR-LOSE, in process listener(1).
10 time $SBCL_XC_HOST <<EOF
11 (load "src/cold/shared.lisp")
12 (load "src/cold/set-up-cold-packages.lisp")
13 (load "tools-for-build/corefile.lisp")
14 (in-package "SB-COLD")
15 (defvar *target-sbcl-version* (read-from-file "version.lisp-expr"))
16 (in-host-compilation-mode
17 (lambda (&aux (sb-xc:*features* (cons :c-headers-only sb-xc:*features*)))
18 (do-stems-and-flags (stem flags 1)
19 (when (member :c-headers flags)
20 (handler-bind ((style-warning (function muffle-warning)))
21 (load (merge-pathnames (stem-remap-target stem) ".lisp")))))
22 (load "src/compiler/generic/genesis.lisp")))
23 (genesis :c-header-dir-name "src/runtime/genesis/" :verbose nil)
24 EOF
26 diff -r output/genesis-2 src/runtime/genesis
28 (cd src/runtime ; $GNUMAKE)