]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/comp.el (comp-final): Log when interactively invoked.
authorAndrea Corallo <akrl@sdf.org>
Wed, 23 Sep 2020 18:48:23 +0000 (20:48 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 23 Sep 2020 18:48:23 +0000 (20:48 +0200)
lisp/emacs-lisp/comp.el

index d4f003f7717f5ed826f87e7506c517211cb9ff6c..2bba298ac0aaabf38f9479b73a97caf23e90d6d3 100644 (file)
@@ -2516,12 +2516,14 @@ Prepare every function for final compilation and drive the C back-end."
       (with-temp-file temp-file
         (insert (prin1-to-string expr)))
       (with-temp-buffer
-        (if (zerop
-               (call-process (expand-file-name invocation-name
-                                               invocation-directory)
-                             nil t t "--batch" "-l" temp-file))
-            output
-          (signal 'native-compiler-error (buffer-string)))))))
+        (unwind-protect
+            (if (zerop
+                 (call-process (expand-file-name invocation-name
+                                                 invocation-directory)
+                               nil t t "--batch" "-l" temp-file))
+                output
+              (signal 'native-compiler-error (buffer-string)))
+          (comp-log-to-buffer (buffer-string)))))))
 
 \f
 ;;; Compiler type hints.