[slime-devel] Re: swank-loader

Christophe Rhodes csr21 at cam.ac.uk
Tue Jan 20 22:13:31 UTC 2004


Brian Mastenbrook <bmastenb at cs.indiana.edu> writes:

> On Jan 20, 2004, at 3:14 PM, Helmut Eller wrote:
>
>> Marco Baringer <mb at bese.it> writes:
>>
>>> when using asdf to load swank the file swank-loader.lisp is compilied,
>>> however this file contains a symbol in the swank package, which is
>>> fine when the file is loaded but is an error when the file is compiled
>>> before the rest of swank has been loaded, which is what asdf tries to
>>> do when loading the swank system.
>>>
>>> anyway, attached is a new swank.asd which contains all the
>>> dependencies in swank-loader and can be loaded from a non-emacs staret
>>> lisp image.
>>
>> Is it possible to say that asdf shouldn't compile the loader, e.g.,
>> with something like (:file "swank-loader.lisp") ?  We shouldn't
>> duplicate all the dependencies in the asd file.
>
> Try something along the lines of:
>
> (defclass uncompiled-cl-source-file (cl-source-file) ())
> (defmethod perform ((o compile-op) (f uncompiled-cl-source-file)) t)

Not sure, but I think you also want
  (defmethod output-files ((o compile-op) (f uncompiled-cl-source-file))
    (list (component-pathname f)))
?  Maybe it works without?  Pass.

Cheers,

Christophe
-- 
http://www-jcsu.jesus.cam.ac.uk/~csr21/       +44 1223 510 299/+44 7729 383 757
(set-pprint-dispatch 'number (lambda (s o) (declare (special b)) (format s b)))
(defvar b "~&Just another Lisp hacker~%")    (pprint #36rJesusCollegeCambridge)





More information about the slime-devel mailing list