summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-07-22 21:55:23 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-07-22 21:55:23 +0200
commit963c8c35c3043aa6f20862b4eb9273587839f77a (patch)
tree0d678f900979fa4a5661e1cf978ed47d039d1acc /lisp/emacs-lisp
parent1767f796b0e0649219e37b6b205f4d414a4364c6 (diff)
downloademacs-963c8c35c3043aa6f20862b4eb9273587839f77a.tar.gz
emacs-963c8c35c3043aa6f20862b4eb9273587839f77a.tar.bz2
emacs-963c8c35c3043aa6f20862b4eb9273587839f77a.zip
Give a better error message in native-compile-prune-cache
* lisp/emacs-lisp/comp.el (native-compile-prune-cache): Give a better error message in non-nativecomp builds.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/comp.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 9a635a47763..04df4885de1 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -4293,6 +4293,8 @@ of (commands) to run simultaneously."
(defun native-compile-prune-cache ()
"Remove .eln files that aren't applicable to the current Emacs invocation."
(interactive)
+ (unless (featurep 'native-compile)
+ (user-error "This Emacs isn't build with native-compile support"))
(dolist (dir native-comp-eln-load-path)
;; If a directory is non absolute it is assumed to be relative to
;; `invocation-directory'.