summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorAndrea Corallo <acorallo@gnu.org>2023-08-12 18:42:33 +0200
committerAndrea Corallo <acorallo@gnu.org>2023-08-12 18:51:45 +0200
commit842dbf500e0fcf44d686d480f39d067b19ff38a9 (patch)
tree423c153121ed1b864497cd20868b5ca5a7ba06cd /lisp/emacs-lisp
parent8dbd5aa1eef9db956ad3a4ed73add23fe0e48268 (diff)
downloademacs-842dbf500e0fcf44d686d480f39d067b19ff38a9.tar.gz
emacs-842dbf500e0fcf44d686d480f39d067b19ff38a9.tar.bz2
emacs-842dbf500e0fcf44d686d480f39d067b19ff38a9.zip
* Fix `batch-byte+native-compile' target directory.
* lisp/emacs-lisp/comp.el (batch-native-compile): Don't shadow `native-compile-target-directory' unless necessary.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/comp.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index bdce4254bf5..0c70789be71 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -4305,8 +4305,9 @@ last directory in `native-comp-eln-load-path')."
(comp-ensure-native-compiler)
(let ((comp-running-batch-compilation t)
(native-compile-target-directory
- (if for-tarball
- (car (last native-comp-eln-load-path)))))
+ (if for-tarball
+ (car (last native-comp-eln-load-path))
+ native-compile-target-directory)))
(cl-loop for file in command-line-args-left
if (or (null byte+native-compile)
(cl-notany (lambda (re) (string-match re file))