From 8a47421c1ade18afc849acc25de0134f1e9b936b Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sat, 8 May 2021 22:09:36 +0100 Subject: [PATCH] fix(native-comp): support new *.eln load path variable name --- early-init.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/early-init.el b/early-init.el index 53c5147..c01aa7b 100644 --- a/early-init.el +++ b/early-init.el @@ -17,11 +17,15 @@ "\\(?:[^z-a]*-autoloads\\.el$\\)" "\\(?:[^z-a]*-pkg\\.el$\\)")) -(when (boundp 'comp-eln-load-path) +(when (or (boundp 'comp-eln-load-path) (boundp 'native-comp-eln-load-path)) (let ((eln-cache-dir (expand-file-name "cache/eln-cache/" user-emacs-directory)) (find-exec (executable-find "find"))) - (setcar comp-eln-load-path eln-cache-dir) + + (if (boundp 'native-comp-eln-load-path) + (setcar native-comp-eln-load-path eln-cache-dir)) + (if (boundp 'comp-eln-load-path) + (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