summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/comp.el
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2020-03-29 11:09:02 +0100
committerAndrea Corallo <akrl@sdf.org>2020-03-29 12:30:33 +0100
commit53f9bc6908a4da8f5c985e8f204a479c828c432d (patch)
treef8ed245dbdb0817a7bd78e3bc3ca9561a5a1c1ee /lisp/emacs-lisp/comp.el
parentc69c185109c90ecc486ab707ed32d7bb7aa467d5 (diff)
downloademacs-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.el3
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)))