]> asedeno.scripts.mit.edu Git - cl-protobufs.git/commitdiff
asdf-support: match asdf platform-specific compile options
authorAlejandro R Sedeño <asedeno@google.com>
Thu, 21 Feb 2013 03:56:22 +0000 (22:56 -0500)
committerAlejandro R Sedeño <asedeno@google.com>
Wed, 27 Feb 2013 23:28:30 +0000 (18:28 -0500)
asdf-support.lisp

index 15c1ff9533ab13dd494d57cd2b05dce1ce0ece8b..6280427d6e8ed4f4eebce6554a7288bc828290f6 100644 (file)
 
 (defmethod perform ((op compile-op) (component protobuf-file))
   (destructuring-bind (lisp-file imports-file) (input-files op component)
-    (destructuring-bind (fasl-file &optional warnings-file) (output-files op component)
+    (destructuring-bind (fasl-file
+                         &optional
+                           #+clisp lib-file
+                           #+(or ecl mkcl) object-file
+                           #+asdf3 warnings-file)
+        (output-files op component)
       (let* ((paths  (cons (directory-namestring lisp-file)
                            (resolve-search-path component)))
              (proto-impl:*protobuf-search-path* paths)
                    :output-file fasl-file
                    #+asdf3 #+asdf3
                    :warnings-file warnings-file
-                   (compile-op-flags op))
+                   (append
+                    #+clisp (list :lib-file lib-file)
+                    #+(or ecl mkcl) (list :object-file object-file)
+                    (compile-op-flags op)))
           (when warnings-p
             (case (operation-on-warnings op)
               (:warn  (warn "~@<COMPILE-FILE warned while performing ~A on ~A.~@:>" op component))