fix for win64 :rename-and-delete

This commit is contained in:
David Botton 2024-05-05 23:37:20 -04:00
parent 7a3f0ddace
commit 4e5cc847b5
2 changed files with 18 additions and 1 deletions

View file

@ -586,3 +586,19 @@ instead of the project window will be displayed."
(when start-browser
(format t "~%If browser does not start go to http://127.0.0.1:~A/builder~%~%" port)
(open-browser :url (format nil "http://127.0.0.1:~A/builder" port))))
(in-package #:quicklisp-client)
;; patch, if-exists of :rename-and-delete does not work well on windows
(defun make-system-index (pathname)
"Create a system index file for all system files under
PATHNAME. Current format is one native namestring per line."
(setf pathname (truename pathname))
(with-open-file (stream (system-index-file pathname)
:direction :output
:if-exists :overwrite)
(dolist (system-file (local-project-system-files pathname))
(let ((system-path (enough-namestring system-file pathname)))
(write-line (native-namestring system-path) stream)))
(probe-file stream)))