[asdf-devel] always load/compile from sources.

Robert Goldman rpgoldman at sift.info
Fri Mar 16 20:45:58 UTC 2012

On 3/16/12 Mar 16 -2:20 PM, Faré wrote:
> Dear Pascal,
> sorry for a slow reply.
> If you want something to only load from source, you'll have to do
> something like:
> (defclass asdf::uncompiled-cl-source-file (cl-source-file) ())
> (defmethod perform-op ((op load-op) (c asdf::uncompiled-cl-source-file))
>   (perform-op (make-instance 'load-source-op) c))
> (defmethod perform-op ((op compile-op) (c asdf::uncompiled-cl-source-file))
>   (values))
> (defmethod output-files ((op compile-op) (c asdf::uncompiled-cl-source-file))
>   nil)
> (defmethod input-files ((op load-op) (c asdf::uncompiled-cl-source-file))
>   (input-files (make-instance 'load-source-op) c))
> You can afterwards have a defsystem form that uses
> :uncompiled-cl-source-file as your component type.

This is something that is often enough needed that it would be great to
see it added to ASDF (in a tested form!).  I have seen this done
multiple times, and each time sooner or later a bug was encountered --
different bugs for different 70% solutions....


More information about the asdf-devel mailing list