;;; cross-compilation host Common Lisp.
(defun load-or-cload-xcompiler (load-or-cload-stem)
- (format t "~&/entering LOAD-OR-CLOAD-XCOMPILER~%") ; REMOVEME
+ (declare (type function load-or-cload-stem))
;; The running-in-the-host-Lisp Python cross-compiler defines its
;; own versions of a number of functions which should not overwrite
;; everything else which needs a separate
;; existence in xc and target
"BUILT-IN-CLASS"
+ "BYTE" "BYTE-POSITION" "BYTE-SIZE"
"CLASS" "CLASS-NAME" "CLASS-OF"
"COMPILE-FILE"
"COMPILE-FILE-PATHNAME"
"DEFINE-MODIFY-MACRO"
"DEFINE-SETF-EXPANDER"
"DEFMACRO" "DEFSETF" "DEFSTRUCT" "DEFTYPE"
+ "DEPOSIT-FIELD" "DPB"
"FBOUNDP" "FDEFINITION" "FMAKUNBOUND"
"FIND-CLASS"
"GET-SETF-EXPANSION"
- "LAMBDA-LIST-KEYWORDS"
+ "LDB" "LDB-TEST"
"LISP-IMPLEMENTATION-TYPE" "LISP-IMPLEMENTATION-VERSION"
"MACRO-FUNCTION"
"MACROEXPAND" "MACROEXPAND-1" "*MACROEXPAND-HOOK*"
"MAKE-LOAD-FORM"
+ "MAKE-LOAD-FORM-SAVING-SLOTS"
+ "MASK-FIELD"
"PACKAGE" "PACKAGEP"
"PROCLAIM"
"SPECIAL-OPERATOR-P"
"STRUCTURE-CLASS"
"SUBTYPEP"
"TYPE-OF" "TYPEP"
+ "UPGRADED-ARRAY-ELEMENT-TYPE"
"WITH-COMPILATION-UNIT"))
(export (intern name package-name) package-name)))
-
- (format t "~&/made SB-XC~%") ; REMOVEME
+ ;; don't watch:
+ (dolist (package-name '("SB!ALIEN"
+ "SB!ALIEN-INTERNALS"
+ "SB!ASSEM"
+ "SB!BIGNUM"
+ "SB!C"
+ "SB!DEBUG"
+ "SB!DI"
+ "SB!DISASSEM"
+ #!+sb-dyncount "SB!DYNCOUNT"
+ "SB!FASL"
+ "SB!IMPL"
+ "SB!EXT"
+ "SB!FORMAT"
+ "SB!GRAY"
+ "SB!INT"
+ "SB!KERNEL"
+ "SB!LOOP"
+ "SB!PCL"
+ "SB!PRETTY"
+ "SB!PROFILE"
+ "SB!SYS"
+ "SB!THREAD"
+ "SB!UNIX"
+ "SB!VM"
+ "SB!WALKER"))
+ (shadowing-import (mapcar (lambda (name) (find-symbol name "SB-XC"))
+ '("BYTE" "BYTE-POSITION" "BYTE-SIZE"
+ "DPB" "LDB" "LDB-TEST"
+ "DEPOSIT-FIELD" "MASK-FIELD"))
+ package-name))
;; Build a version of Python to run in the host Common Lisp, to be
;; used only in cross-compilation.
;; order to make the compiler aware of the definitions of assembly
;; routines.
(do-stems-and-flags (stem flags)
- (format t "~&/STEM=~S FLAGS=~S~%" stem flags) ; REMOVEME
(unless (find :not-host flags)
- (format t "~&/FUNCALLing ~S~%" load-or-cload-stem) ; REMOVEME
(funcall load-or-cload-stem
stem
:ignore-failure-p (find :ignore-failure-p flags))
- (format t "~&/back from FUNCALL~%") ; REMOVEME
#!+sb-show (warn-when-cl-snapshot-diff *cl-snapshot*)))
;; If the cross-compilation host is SBCL itself, we can use the
;; (in the ordinary build procedure anyway) essentially everything
;; which is reachable at this point will remain reachable for the
;; entire run.
- (format t "~&/doing PURIFY~%") ; REMOVEME
#+sbcl (sb-ext:purify)
(values))