summaryrefslogtreecommitdiff
path: root/lisp/loadup.el
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2020-10-10 18:18:09 +0200
committerAndrea Corallo <akrl@sdf.org>2020-10-10 18:47:45 +0200
commit8b135af5bbdfb6cf561f92a02ef92e855acc04dd (patch)
treee6b4039137f54f29b2dbd853fcc63aa7a88c1842 /lisp/loadup.el
parent77fa6befb478f49a47ef1cee88e2c791e0037617 (diff)
downloademacs-8b135af5bbdfb6cf561f92a02ef92e855acc04dd.tar.gz
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/loadup.el')
-rw-r--r--lisp/loadup.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/loadup.el b/lisp/loadup.el
index 91126703d18..827087f763c 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -449,7 +449,7 @@ lost after dumping")))
;; At this point, we're ready to resume undo recording for scratch.
(buffer-enable-undo "*scratch*")
-(when (boundp 'comp-ctxt)
+(when (featurep 'nativecomp)
;; Fix the compilation unit filename to have it working when
;; when installed or if the source directory got moved. This is set to be
;; a pair in the form: (rel-path-from-install-bin . rel-path-from-local-bin).
@@ -510,7 +510,7 @@ lost after dumping")))
((equal dump-mode "bootstrap") "emacs")
((equal dump-mode "pbootstrap") "bootstrap-emacs.pdmp")
(t (error "unrecognized dump mode %s" dump-mode)))))
- (when (and (boundp 'comp-ctxt)
+ (when (and (featurep 'nativecomp)
(equal dump-mode "pdump"))
;; Don't enable this before bootstrap is completed the as the
;; compiler infrastructure may not be usable.