fix(native_comp): correctly set custom comp-eln-load-path

This commit is contained in:
2020-08-25 01:42:40 +01:00
parent 04b252438b
commit 4e7ec6ade8

View File

@@ -13,7 +13,7 @@
(when (boundp 'comp-eln-load-path)
(let ((eln-cache-dir (expand-file-name "cache/eln-cache/" user-emacs-directory))
(find-exec (executable-find "find")))
(add-to-list 'comp-eln-load-path eln-cache-dir)
(setcar comp-eln-load-path eln-cache-dir)
;; Quitting emacs while native compilation in progress can leave zero byte
;; sized *.eln files behind. Hence delete such files during startup.
(when find-exec