Skip to content

Instantly share code, notes, and snippets.

@nikodemus
Created April 7, 2012 20:17
Show Gist options
  • Save nikodemus/2331850 to your computer and use it in GitHub Desktop.
Save nikodemus/2331850 to your computer and use it in GitHub Desktop.
Recompiling stale fasls
;;; If a fasl was stale, try to recompile and load (once).
(defmethod asdf:perform :around ((o asdf:load-op)
(c asdf:cl-source-file))
(handler-case (call-next-method o c)
(sb-ext:invalid-fasl ()
(asdf:perform (make-instance 'asdf:compile-op) c)
(call-next-method))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment