diff options
author | Andrea Corallo <acorallo@gnu.org> | 2023-08-12 18:42:33 +0200 |
---|---|---|
committer | Andrea Corallo <acorallo@gnu.org> | 2023-08-12 18:51:45 +0200 |
commit | 842dbf500e0fcf44d686d480f39d067b19ff38a9 (patch) | |
tree | 423c153121ed1b864497cd20868b5ca5a7ba06cd /lisp/emacs-lisp | |
parent | 8dbd5aa1eef9db956ad3a4ed73add23fe0e48268 (diff) | |
download | emacs-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.el | 5 |
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)) |