summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/comp.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2022-01-10 17:05:41 +0000
committerAlan Mackenzie <acm@muc.de>2022-01-10 17:05:41 +0000
commitffc047c896413b6e00032518fc934f08768671fa (patch)
treecbfeed3049aab62b3538049bf19fe619ce357e20 /lisp/emacs-lisp/comp.el
parent74223bbdaff7533709fe6e81837e09d98320c1ee (diff)
downloademacs-ffc047c896413b6e00032518fc934f08768671fa.tar.gz
emacs-ffc047c896413b6e00032518fc934f08768671fa.tar.bz2
emacs-ffc047c896413b6e00032518fc934f08768671fa.zip
Remove the filename argument from the command line after an ELC+ELN build
This fixes bug #53164. Without this fix, bootstrap-emacs loads the source file uselessly into a buffer after completing the compilation.
Diffstat (limited to 'lisp/emacs-lisp/comp.el')
-rw-r--r--lisp/emacs-lisp/comp.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 2ced6277add..5b8c20f2bf8 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -4224,7 +4224,8 @@ variable 'NATIVE_DISABLED' is set, only byte compile."
(batch-native-compile)
(pcase byte-to-native-output-file
(`(,tempfile . ,target-file)
- (rename-file tempfile target-file t))))))
+ (rename-file tempfile target-file t)))
+ (setq command-line-args-left (cdr command-line-args-left)))))
;;;###autoload
(defun native-compile-async (files &optional recursively load selector)