]> git.eshelyaron.com Git - emacs.git/commitdiff
* Fix `native-comp-enable-subr-trampolines' semantic
authorAndrea Corallo <akrl@sdf.org>
Sat, 18 Feb 2023 21:44:05 +0000 (22:44 +0100)
committerAndrea Corallo <akrl@sdf.org>
Sat, 18 Feb 2023 21:44:05 +0000 (22:44 +0100)
* lisp/emacs-lisp/comp.el (comp--trampoline-abs-filename): Interpret
`native-comp-enable-subr-trampolines' relative to
`invocation-directory'.

lisp/emacs-lisp/comp.el

index 2d9cad6d98cb28a42ad36a7bda5e43f5ce5f6514..a2bad6ce6a8077e1dbf88b00aec4159bcd183074 100644 (file)
@@ -3794,7 +3794,8 @@ Return the trampoline if found or nil otherwise."
   "Return the absolute filename for a trampoline for SUBR-NAME."
   (cl-loop
    with dirs = (if (stringp native-comp-enable-subr-trampolines)
-                   (list native-comp-enable-subr-trampolines)
+                   (list (expand-file-name native-comp-enable-subr-trampolines
+                                           invocation-directory))
                  (if native-compile-target-directory
                      (list (expand-file-name comp-native-version-dir
                                              native-compile-target-directory))