summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/comp.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emacs-lisp/comp.el')
-rw-r--r--lisp/emacs-lisp/comp.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 0ebaccbe4a6..297c1f7ebca 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -3944,11 +3944,14 @@ display a message."
source-file)
(comp-accept-and-process-async-output process)
(ignore-errors (delete-file temp-file))
- (when (and load1
- (zerop (process-exit-status process)))
- (native-elisp-load
- (comp-el-to-eln-filename source-file1)
- (eq load1 'late)))
+ (let ((eln-file (comp-el-to-eln-filename
+ source-file1)))
+ (when (and load1
+ (zerop (process-exit-status
+ process))
+ (file-exists-p eln-file))
+ (native-elisp-load eln-file
+ (eq load1 'late))))
(comp-run-async-workers))
:noquery (not comp-async-query-on-exit))))
(puthash source-file process comp-async-compilations))