]> git.eshelyaron.com Git - emacs.git/commitdiff
* Fix `native-compile-target-directory' effectiveness on trampolines
authorAndrea Corallo <akrl@sdf.org>
Fri, 15 Oct 2021 07:26:24 +0000 (09:26 +0200)
committerAndrea Corallo <akrl@sdf.org>
Fri, 15 Oct 2021 07:32:20 +0000 (09:32 +0200)
* lisp/emacs-lisp/comp.el (comp-trampoline-compile): Fix
`native-compile-target-directory' effectiveness on trampoline
compilation.

lisp/emacs-lisp/comp.el

index 0e4e54b76bb87601f85bdcb0a631779c31e478ca..7b5c5ad44f7c58d21f5ce6aed875fd22891f979f 100644 (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)