truth-table/build.lisp

20 lines
506 B
Common Lisp
Raw Normal View History

2024-09-04 03:14:57 -07:00
;; This file should be run as follows:
;; sbcl --load build.lisp --eval '(<BUILD FUNCTION>)'
;; where <BUILD FUNCTION> is either `cli' or `web'
2024-09-03 17:50:58 -07:00
2024-09-04 03:14:57 -07:00
#-sbcl (error "Only SBCL is supported right now")
2024-09-03 17:50:58 -07:00
2024-09-04 03:14:57 -07:00
(sb-ext:disable-debugger)
(require :asdf)
(defun cli ()
"Build the CLI application executable."
(asdf:load-system :truth-table/cli)
(require :truth-table/cli)
2024-09-03 17:50:58 -07:00
(sb-ext:save-lisp-and-die
"truth-table"
2024-09-04 03:14:57 -07:00
:executable t
2024-09-03 17:50:58 -07:00
:save-runtime-options t
2024-09-04 03:14:57 -07:00
:toplevel (intern "TOPLEVEL" :truth-table/cli)))