Merge pull request #848 from lockywolf/crutch-for-relative-install-lib-dir

Add a crutch to better detect snow binary extension dir.
This commit is contained in:
Alex Shinn 2022-08-03 22:42:40 +09:00 committed by GitHub
commit 2f50a6cf74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1383,7 +1383,9 @@
(chibi (eval '(current-module-path) (environment '(chibi)))) (chibi (eval '(current-module-path) (environment '(chibi))))
(else (process->sexp (else (process->sexp
'(chibi-scheme -q -p "(current-module-path)")))))) '(chibi-scheme -q -p "(current-module-path)"))))))
(lib-dir (find (lambda (d) (string-contains d "/lib")) dirs))) (lib-dir (find (lambda (d) (and (equal? (string-ref d 0) #\/)
(string-contains d "/lib")))
dirs)))
(if lib-dir (if lib-dir
(cons lib-dir (delete lib-dir dirs)) (cons lib-dir (delete lib-dir dirs))
dirs))) dirs)))