<div dir="ltr"><div>FTR, i have managed to solve it with this:</div><div><br></div>(defclass generate-lisp-op (selfward-operation)<br>  ((selfward-operation :initform '()))) ; we will specify it in our own COMPONENT-DEPENDS-ON<br><div><br></div><div>(defmethod component-depends-on ((op generate-lisp-op) (c c2ffi-file))<br>  `((load-op ,(find-system "cffi/c2ffi-generator"))<br>    ;; Regenerating the spec file is a lot of headache, so we ignore<br>    ;; the file modification times, and only communicate the<br>    ;; dependency to ASDF if the spec file is missing.<br>    ,@(let ((spec-file (input-file op c))) ; TODO is it legal to call ASDF:INPUT-FILES here?<br>        (when (or (not (probe-file spec-file))<br>                  (zerop (with-input-from-file (s spec-file)<br>                           (file-length s))))<br>          `((generate-spec-op ,c))))<br>    ,@(call-next-method)))<br></div><div><br></div><div>the commit: </div><div><a href="https://github.com/cffi/cffi/commit/46975c644aeb0a832cd170e953cc8ec3cbdc78df">https://github.com/cffi/cffi/commit/46975c644aeb0a832cd170e953cc8ec3cbdc78df</a><br></div><div><br></div><div>- attila</div><div><br></div><div>PS: sorry for the double send, i have cleaned up my mail settings.</div></div>