Next: , Previous: , Up: Defining systems with defsystem   [Contents][Index]

6.4 Other code in .asd files

Files containing defsystem forms are regular Lisp files that are executed by load. Consequently, you can put whatever Lisp code you like into these files. However, it is recommended to keep such forms to a minimal, and to instead define defsystem extensions that you use with :defsystem-depends-on.

If however, you might insist on including code in the .asd file itself, e.g., to examine and adjust the compile-time environment, possibly adding appropriate features to *features*. If so, here are some conventions we recommend you follow, so that users can control certain details of execution of the Lisp in .asd files: