Changeset 5739


Ignore:
Timestamp:
Jan 18, 2007, 10:15:21 PM (18 years ago)
Author:
Gary Byers
Message:

Deal with the new ffi-backend sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lib/compile-ccl.lisp

    r5174 r5739  
    128128
    129129(defun target-env-modules (&optional (target
    130                                       (backend-target-arch-name
    131                                        *host-backend*)))
    132   (declare (ignore target))
    133   *env-modules*)
     130                                      (backend-name *host-backend*)))
     131  (append *env-modules*
     132          (list
     133           (ecase target
     134             (:linuxppc32 'ffi-linuxppc32)
     135             (:darwinppc32 'ffi-darwinppc32)
     136             (:darwinppc64 'ffi-darwinppc64)
     137             (:linuxppc64 'ffi-linuxppc64)
     138             (:linuxx8664 'ffi-linuxx8664)
     139             (:darwinx8664 'ffi-darwinx8664)
     140             (:freebsdx8664 'ffi-freebsdx8664)))))
     141
    134142
    135143(defun target-compiler-modules (&optional (target
     
    162170         
    163171
    164 (defun target-lib-modules (&optional (target
    165                                       (backend-target-arch-name *target-backend*)))
    166   (append (target-env-modules target) (target-other-lib-modules target)))
     172(defun target-lib-modules (&optional (backend-name
     173                                      (backend-name *host-backend*)))
     174  (let* ((backend (or (find-backend backend-name) *host-backend*))
     175         (arch-name (backend-target-arch-name backend)))
     176    (append (target-env-modules backend-name) (target-other-lib-modules arch-name))))
    167177
    168178
     
    381391    (target-compile-modules (target-compiler-modules arch) target force)
    382392    (target-compile-modules (target-level-1-modules target) target force)
    383     (target-compile-modules (target-lib-modules arch) target force)
     393    (target-compile-modules (target-lib-modules target) target force)
    384394    (target-compile-modules *aux-modules* target force)
    385395    (target-compile-modules *code-modules* target force)
Note: See TracChangeset for help on using the changeset viewer.