diff options
author | Andrea Corallo <akrl@sdf.org> | 2020-10-10 18:18:09 +0200 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2020-10-10 18:47:45 +0200 |
commit | 8b135af5bbdfb6cf561f92a02ef92e855acc04dd (patch) | |
tree | e6b4039137f54f29b2dbd853fcc63aa7a88c1842 /lisp/emacs-lisp/comp.el | |
parent | 77fa6befb478f49a47ef1cee88e2c791e0037617 (diff) | |
download | emacs-8b135af5bbdfb6cf561f92a02ef92e855acc04dd.tar.gz emacs-8b135af5bbdfb6cf561f92a02ef92e855acc04dd.tar.bz2 emacs-8b135af5bbdfb6cf561f92a02ef92e855acc04dd.zip |
Provide feature nativecomp and make use of it
* lisp/emacs-lisp/comp.el (comp-ensure-native-compiler): Use
`featurep' to identify if the native compiler is available.
* lisp/emacs-lisp/nadvice.el (advice--add-function): Likewise.
* lisp/emacs-lisp/package.el (package--delete-directory): Likewise.
* lisp/loadup.el: Likewise.
* src/comp.c (syms_of_comp): Provide feature nativecomp.
Diffstat (limited to 'lisp/emacs-lisp/comp.el')
-rw-r--r-- | lisp/emacs-lisp/comp.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index d860fa31f0b..a4f2b6c36c7 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -422,7 +422,7 @@ CFG is mutated by a pass.") Raise an error otherwise. To be used by all entry points." (cond - ((null (boundp 'comp-ctxt)) + ((null (featurep 'nativecomp)) (error "Emacs not compiled with native compiler support (--with-nativecomp)")) ((null (native-comp-available-p)) (error "Cannot find libgccjit")))) |