]> git.eshelyaron.com Git - emacs.git/commitdiff
* comp.el (comp-output-base-filename): Handle src being a symbol
authorAndrea Corallo <akrl@sdf.org>
Sun, 29 Mar 2020 10:09:02 +0000 (11:09 +0100)
committerAndrea Corallo <akrl@sdf.org>
Sun, 29 Mar 2020 11:30:33 +0000 (12:30 +0100)
lisp/emacs-lisp/comp.el

index eca61c6bac5573ff1b010559e002aadd04372501..92d0655ffdc0f57ff151d3ee6d9dc59750099821 100644 (file)
@@ -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)))