File: load-xc.lisp

package info (click to toggle)
sbcl 2%3A2.5.8-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 50,756 kB
  • sloc: lisp: 516,661; ansic: 41,216; sh: 5,634; asm: 2,290; pascal: 717; makefile: 431; cpp: 27
file content (17 lines) | stat: -rw-r--r-- 623 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
;;; This can be loaded into Slime, xc-compile-file will produce trace output
(load "src/cold/shared.lisp")
(in-package "SB-COLD")
(setf *host-obj-prefix* "obj/from-host/")
(pushnew :sb-xc-host *features*)
(pushnew :sb-xc-host-interactive *features*)

(load "src/cold/set-up-cold-packages.lisp")
(load "src/cold/defun-load-or-cload-xcompiler.lisp")

(load-or-cload-xcompiler #'host-load-stem) ;; if the FASLs are already compiled

(defun xc-compile-file (file)
  (sb-c::init-xc-policy)
  (sb-xc:with-compilation-unit ()
    (sb-xc:compile-file file :trace-file *standard-output*)
    (setf sb-c::*undefined-warnings* nil)))