X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcold%2Fshared.lisp;h=b92bc79690a96eb88ebc0c181b174a47a7820483;hb=89a02d3ba803a1d85d745e22b4ac05ef8cb12370;hp=d8d6f446925728c75d58063337b5adaf2e8fcf69;hpb=b42c75203a3f077e8f59373a48af5e3a304addbf;p=sbcl.git diff --git a/src/cold/shared.lisp b/src/cold/shared.lisp index d8d6f44..b92bc79 100644 --- a/src/cold/shared.lisp +++ b/src/cold/shared.lisp @@ -33,24 +33,6 @@ (defvar *host-obj-prefix*) (defvar *target-obj-prefix*) -;;; suffixes for filename stems when cross-compiling -(defvar *host-obj-suffix* - (or - ;; On some xc hosts, it's impossible to LOAD a fasl file unless it - ;; has the same extension that the host uses for COMPILE-FILE - ;; output, so we have to be careful to use the xc host's preferred - ;; extension. - ;; - ;; FIXME: This is a little ugly and annoying to maintain. And - ;; there's very likely some way to rearrange the build process so - ;; that we never explicitly refer to host object file suffixes, - ;; only to the result of CL:COMPILE-FILE-PATHNAME. - #+lispworks ".ufsl" ; as per Lieven Marchand sbcl-devel 2002-02-01 - #+(and openmcl (not darwin)) ".pfsl" - #+(and openmcl darwin) ".dfsl" - ;; On most xc hosts, any old extension works, so we use an - ;; arbitrary one. - ".lisp-obj")) (defvar *target-obj-suffix* ;; Target fasl files are LOADed (actually only quasi-LOADed, in ;; GENESIS) only by SBCL code, and it doesn't care about particular @@ -131,7 +113,7 @@ (setf *shebang-features* (let* ((default-features (append (read-from-file "base-target-features.lisp-expr") - (read-from-file "local-target-features.lisp-expr"))) + (eval (read-from-file "local-target-features.lisp-expr")))) (customizer-file-name "customize-target-features.lisp") (customizer (if (probe-file customizer-file-name) (compile nil @@ -242,7 +224,14 @@ (multiple-value-bind (obj-prefix obj-suffix) (ecase mode - (:host-compile (values *host-obj-prefix* *host-obj-suffix*)) + (:host-compile + ;; On some xc hosts, it's impossible to LOAD a fasl file unless it + ;; has the same extension that the host uses for COMPILE-FILE + ;; output, so we have to be careful to use the xc host's preferred + ;; extension. + (values *host-obj-prefix* + (concatenate 'string "." + (pathname-type (compile-file-pathname stem))))) (:target-compile (values *target-obj-prefix* (if (find :assem flags) *target-assem-obj-suffix* @@ -416,7 +405,6 @@ ;;; like HOST-CLOAD-STEM, except that we don't bother to compile (defun host-load-stem (stem flags) - (declare (ignore flags)) ; (It's only relevant when compiling.) (load (stem-object-path stem flags :host-compile))) (compile 'host-load-stem)