mirror of
https://github.com/roswell/roswell.git
synced 2026-09-10 07:16:17 -04:00
now compile option for sbcl can be checked at /share/features.lisp-expr.
This commit is contained in:
parent
38d80e1845
commit
157bd0b2e2
|
|
@ -143,6 +143,25 @@
|
|||
(format t"done.~%"))
|
||||
(cons t argv))
|
||||
|
||||
(defun sbcl-backup-features (argv)
|
||||
(let ((src (get-opt "src")) origin opts)
|
||||
(with-open-file (out (merge-pathnames "share/features.lisp-expr" (get-opt "prefix"))
|
||||
:direction :output
|
||||
:if-exists :supersede
|
||||
:if-does-not-exist :create)
|
||||
(flet ((read-from-file (f)
|
||||
(with-open-file (in (merge-pathnames f src))
|
||||
(read in))))
|
||||
(setq origin (funcall (compile nil (read-from-file "local-target-features.lisp-expr"))
|
||||
(read-from-file "base-target-features.lisp-expr"))
|
||||
opts (funcall (if (probe-file (merge-pathnames #1="customize-target-features.lisp" src))
|
||||
(compile nil (read-from-file #1#))
|
||||
#'identity) (copy-list origin)))
|
||||
(format out "(:+ ~s)~%(:- ~s)~%"
|
||||
(set-difference opts origin)
|
||||
(set-difference origin opts)))))
|
||||
(cons t argv))
|
||||
|
||||
(defun sbcl-clean (argv)
|
||||
(format t "~&Cleaning~%")
|
||||
(let ((src (get-opt "src")))
|
||||
|
|
@ -185,6 +204,7 @@
|
|||
'sbcl-config
|
||||
'sbcl-make
|
||||
'sbcl-install
|
||||
'sbcl-backup-features
|
||||
'sbcl-clean
|
||||
'setup))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue