Subject: feature/native-comp; comp.el: Pass comp-eln-load-path to child

From: Andrew Whatson <[email-masked]>
Date: Tue, 18 Aug 2020 12:19:21 +1000

The `comp-eln-load-path' must be passed to the child to ensure that .eln
files are written to the correct location.

Without this, when a custom `comp-eln-load-path' is used, Emacs will
crash with "Native elisp load failed: file does not exist".

---
 lisp/emacs-lisp/comp.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 85b5562f28..3176351b37 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -2580,6 +2580,7 @@ comp-run-async-workers
                             (setf comp-speed ,comp-speed
                                   comp-debug ,comp-debug
                                   comp-verbose ,comp-verbose
+                                  comp-eln-load-path ',comp-eln-load-path
                                   load-path ',load-path)
                             ,comp-async-env-modifier-form
                             (message "Compiling %s..." ,source-file)
-- 
2.28.0