diff options
| author | Andrea Corallo | 2020-10-10 18:18:09 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2020-10-10 18:47:45 +0200 |
| commit | 8b135af5bbdfb6cf561f92a02ef92e855acc04dd (patch) | |
| tree | e6b4039137f54f29b2dbd853fcc63aa7a88c1842 /src | |
| parent | 77fa6befb478f49a47ef1cee88e2c791e0037617 (diff) | |
| download | emacs-8b135af5bbdfb6cf561f92a02ef92e855acc04dd.tar.gz 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 'src')
| -rw-r--r-- | src/comp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/comp.c b/src/comp.c index 13343de3d88..0b5a49fd1f1 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -5300,6 +5300,7 @@ The last directory of this list is assumed to be the system one. */); | |||
| 5300 | doc: /* Hash table subr-name -> bool. */); | 5300 | doc: /* Hash table subr-name -> bool. */); |
| 5301 | Vcomp_installed_trampolines_h = CALLN (Fmake_hash_table); | 5301 | Vcomp_installed_trampolines_h = CALLN (Fmake_hash_table); |
| 5302 | 5302 | ||
| 5303 | Fprovide (intern_c_string ("nativecomp"), Qnil); | ||
| 5303 | #endif /* #ifdef HAVE_NATIVE_COMP */ | 5304 | #endif /* #ifdef HAVE_NATIVE_COMP */ |
| 5304 | 5305 | ||
| 5305 | defsubr (&Snative_comp_available_p); | 5306 | defsubr (&Snative_comp_available_p); |