SLY: Fix implementations using maybe-core-dumper.

master
Pierre Neidhardt 2021-01-12 13:56:20 +01:00
parent 449c85cbf4
commit ca38a1e995
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ If REFRESH is non-nil, rebuild the environment."
;; Warning: ,restart-lisp does not take changes into account, the buffer must be re-created.
(setq sly-lisp-implementations
(let ((maybe-core-dumper (executable-find "lisp-repl-core-dumpers")))
(let ((maybe-core-dumper (when-let ((exec (executable-find "lisp-repl-core-dumper")))
(list exec))))
`((sbcl-ambrevar ("lisp-repl-core-dumper" "-p" "ambrevar" "sbcl" "--eval" "(in-package :ambrevar/shell)"))
(sbcl (,@maybe-core-dumper "sbcl"))
(sbcl-nyxt (lambda () (ambrevar/sbcl-for-nyxt)))