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.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 59e9dbc0138..213eb7b4126 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -3666,7 +3666,9 @@ Prepare every function for final compilation and drive the C back-end."
(call-process (expand-file-name invocation-name
invocation-directory)
nil t t "--batch" "-l" temp-file))
- output
+ (progn
+ (delete-file temp-file)
+ output)
(signal 'native-compiler-error (buffer-string)))
(comp-log-to-buffer (buffer-string))))))))