mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
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.
This commit is contained in:
parent
77fa6befb4
commit
8b135af5bb
5 changed files with 6 additions and 5 deletions
|
|
@ -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"))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue