From 9da698575addc4b9c007d7d6c1590bc5ac245bdc Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Sun, 29 Sep 2019 11:05:54 +0200 Subject: [PATCH] always expand file name when bytecompiling --- lisp/emacs-lisp/comp.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 209c4e68b6a..cb88bd88525 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -1579,9 +1579,10 @@ If INPUT is a string, use it as the file path to be native compiled." (error "Trying to native compile something not a symbol function or file")) (let ((data input) (comp-native-compiling t) - (comp-ctxt (make-comp-ctxt :output (if (symbolp input) - (symbol-name input) - (file-name-sans-extension input))))) + (comp-ctxt (make-comp-ctxt + :output (if (symbolp input) + (symbol-name input) + (file-name-sans-extension (expand-file-name input)))))) (mapc (lambda (pass) (comp-log (format "Running pass %s:\n" pass)) (setq data (funcall pass data))) -- 2.39.5