emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/native-comp b070571 7/9: * comp.el (comp-run-async-workers): Loa


From: Andrea Corallo
Subject: feature/native-comp b070571 7/9: * comp.el (comp-run-async-workers): Load only if compilation succeed
Date: Thu, 19 Mar 2020 14:41:52 -0400 (EDT)

branch: feature/native-comp
commit b070571f93def7892b71a711a59bbd065c554897
Author: Andrea Corallo <address@hidden>
Commit: Andrea Corallo <address@hidden>

    * comp.el (comp-run-async-workers): Load only if compilation succeed
---
 lisp/emacs-lisp/comp.el | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 44de274..00883a3 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -2163,16 +2163,18 @@ display a message."
                                        (expand-file-name invocation-name
                                                          invocation-directory)
                                        "--batch" "--eval" (prin1-to-string 
expr))
-                             :sentinel (lambda (process _event)
-                                         (run-hook-with-args
-                                          'comp-async-cu-done-hook
-                                          source-file)
-                                         (accept-process-output process)
-                                         (when load1
-                                           (native-elisp-load
-                                            (comp-output-filename source-file1)
-                                            load1))
-                                         (comp-run-async-workers)))))
+                             :sentinel
+                             (lambda (process _event)
+                               (run-hook-with-args
+                                'comp-async-cu-done-hook
+                                source-file)
+                               (accept-process-output process)
+                               (when (and load1
+                                          (zerop (process-exit-status 
process)))
+                                 (native-elisp-load
+                                  (comp-output-filename source-file1)
+                                  load1))
+                               (comp-run-async-workers)))))
               (push process comp-async-processes))
          when (>= (comp-async-runnings) (comp-effective-async-max-jobs))
            do (cl-return)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]