Skip to content

Commit eca06e0

Browse files
committed
Dynamically check location for SBCL contribs instead of hardcoding /usr/local.
1 parent 7a95c5a commit eca06e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dist-cache.lisp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,13 @@ if needed."
160160
(setf source (source-designator source))
161161
(mapcar 'pathname-name (system-files source)))
162162

163-
164163
(defun asdf-systems-table ()
165164
"Return a hash table that maps system names to system files."
166165
(let ((table (make-string-table)))
167166
;; Add SBCL contribs first
168-
(let ((contrib-system-files
169-
(directory "/usr/local/lib/sbcl/contrib/*.asd")))
167+
(let* ((base (sb-int:sbcl-homedir-pathname))
168+
(contrib-system-files
169+
(directory (merge-pathnames "contrib/*.asd" base))))
170170
(dolist (file contrib-system-files)
171171
(setf (gethash (pathname-name file) table) file)))
172172
(map-sources

0 commit comments

Comments
 (0)