dot/lisp-init.lisp: Don't set SBCL source directory if there's no source there.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 17 Jun 2024 17:27:40 +0000 (18:27 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 17 Jun 2024 17:27:45 +0000 (18:27 +0100)
dot/lisp-init.lisp

index 64faf2b..91971ca 100644 (file)
@@ -48,7 +48,9 @@
 
 ;; Tell SBCL where to find its source source.
 #+sbcl
-(sb-ext:set-sbcl-source-location #p"/usr/share/sbcl-source/")
+(let ((srcdir #p"/usr/share/sbcl-source/"))
+  (when (probe-file srcdir)
+    (sb-ext:set-sbcl-source-location srcdir)))
 
 ;; Get SBCL to shut up about package variance.  This is a standard result of
 ;; my approach to symbol exports, and I don't care.