From ced72b6e4c03c75e99e828410c363eefd80fbf54 Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Fri, 15 Oct 2021 09:26:24 +0200 Subject: [PATCH] * 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. --- lisp/emacs-lisp/comp.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 0e4e54b76bb..7b5c5ad44f7 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -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) -- 2.39.2