summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2020-08-23 12:36:07 +0200
committerAndrea Corallo <akrl@sdf.org>2020-08-23 12:58:52 +0200
commit337367a733e107df1ecb89955f0a249491bc62d9 (patch)
tree7d4e03f9c9022168d0e3f2f99d3245cba864bf96 /lisp/emacs-lisp
parent6088d199595d102ad6701512560322e74e181d27 (diff)
downloademacs-337367a733e107df1ecb89955f0a249491bc62d9.tar.gz
emacs-337367a733e107df1ecb89955f0a249491bc62d9.tar.bz2
emacs-337367a733e107df1ecb89955f0a249491bc62d9.zip
* lisp/emacs-lisp/comp.el (native-compile): Fix free function compilation.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/comp.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 3176351b37d..28dbd567474 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -2654,11 +2654,11 @@ Return the compilation unit file name."
(byte-compile-debug t)
(comp-ctxt
(make-comp-ctxt
- :output (comp-el-to-eln-filename (if (symbolp function-or-file)
- (symbol-name function-or-file)
- function-or-file)
- (when byte-native-for-bootstrap
- (car (last comp-eln-load-path))))
+ :output (if (symbolp function-or-file)
+ (make-temp-file (symbol-name function-or-file) nil ".eln")
+ (comp-el-to-eln-filename function-or-file
+ (when byte-native-for-bootstrap
+ (car (last comp-eln-load-path)))))
:with-late-load with-late-load)))
(comp-log "\n \n" 1)
(condition-case err