diff options
author | Andrea Corallo <akrl@sdf.org> | 2020-03-29 11:09:02 +0100 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2020-03-29 12:30:33 +0100 |
commit | 53f9bc6908a4da8f5c985e8f204a479c828c432d (patch) | |
tree | f8ed245dbdb0817a7bd78e3bc3ca9561a5a1c1ee /lisp/emacs-lisp/comp.el | |
parent | c69c185109c90ecc486ab707ed32d7bb7aa467d5 (diff) | |
download | emacs-53f9bc6908a4da8f5c985e8f204a479c828c432d.tar.gz emacs-53f9bc6908a4da8f5c985e8f204a479c828c432d.tar.bz2 emacs-53f9bc6908a4da8f5c985e8f204a479c828c432d.zip |
* comp.el (comp-output-base-filename): Handle src being a symbol
Diffstat (limited to 'lisp/emacs-lisp/comp.el')
-rw-r--r-- | lisp/emacs-lisp/comp.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index eca61c6bac5..92d0655ffdc 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -440,7 +440,8 @@ VERBOSITY is a number between 0 and 3." (defun comp-output-base-filename (src) "Output filename sans extention for SRC file being native compiled." - (let* ((expanded-filename (expand-file-name src)) + (let* ((src (if (symbolp src) (symbol-name src) src)) + (expanded-filename (expand-file-name src)) (output-dir (file-name-as-directory (concat (file-name-directory expanded-filename) comp-native-path-postfix))) |