emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 963c8c35c3: Give a better error message in native-compile-prune-c


From: Lars Ingebrigtsen
Subject: master 963c8c35c3: Give a better error message in native-compile-prune-cache
Date: Fri, 22 Jul 2022 15:55:37 -0400 (EDT)

branch: master
commit 963c8c35c3043aa6f20862b4eb9273587839f77a
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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.
---
 lisp/emacs-lisp/comp.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index 9a635a4776..04df4885de 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'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]