summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2022-01-11 18:29:07 +0000
committerAlan Mackenzie <acm@muc.de>2022-01-11 18:29:07 +0000
commit18dac472553e6cd1102b644c2175012e12215c18 (patch)
treef42dc6baa2b35b9a30cebe03f24c66f96619e661
parent368b8fe765b451084529fb8021db2a99abf2f65a (diff)
downloademacs-18dac472553e6cd1102b644c2175012e12215c18.tar.gz
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.
-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 cf2dbd62f11..e50538c4232 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -4216,7 +4216,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)