build.lisp 494 B

12345678910111213141516171819
  1. ;; This file should be run as follows:
  2. ;; sbcl --load build.lisp --eval '(cli)'
  3. ;; where <BUILD FUNCTION> is either `cli' or `web'
  4. #-sbcl (error "Only SBCL is supported right now")
  5. (require :asdf)
  6. (defun cli ()
  7. "Build the CLI application executable."
  8. (sb-ext:disable-debugger)
  9. (asdf:load-system :truth-table/cli)
  10. (require :truth-table/cli)
  11. (sb-ext:save-lisp-and-die
  12. "truth-table"
  13. :executable t
  14. :save-runtime-options t
  15. :toplevel (intern "TOPLEVEL" :truth-table/cli)))