* Fix `native-compile-target-directory' effectiveness on trampolines

* lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix
`native-compile-target-directory' effectiveness on trampoline
compilation.
This commit is contained in:
Andrea Corallo 2021-10-15 09:26:24 +02:00
parent 502788bc3d
commit ced72b6e4c

View file

@ -3789,7 +3789,9 @@ Return the trampoline if found or nil otherwise."
(comp--native-compile
form nil
(cl-loop
for dir in (comp-eln-load-path-eff)
for dir in (if native-compile-target-directory
(list native-compile-target-directory)
(comp-eln-load-path-eff))
for f = (expand-file-name
(comp-trampoline-filename subr-name)
dir)