From 81bfe715e2137f0572bb17a51bdac3e4f8cd106d Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Fri, 22 Jul 2022 18:46:33 +0200 Subject: [PATCH] * Warning the user if loading comp on a non native capable Emacs. * lisp/emacs-lisp/comp.el: Warning the user if loading on a non native capable Emacs. --- lisp/emacs-lisp/comp.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 9a635a4776..b9de0289ee 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -28,6 +28,10 @@ ;;; Code: +(unless (featurep 'native-compile) + (display-warning 'comp "This emacs does not support native compilation" + :warning)) + (require 'bytecomp) (require 'cl-extra) (require 'cl-lib) -- 2.25.1