summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/package.el
diff options
context:
space:
mode:
authorStephen Gildea <stepheng+emacs@gildea.com>2021-10-05 09:15:57 -0700
committerStephen Gildea <stepheng+emacs@gildea.com>2021-10-05 09:24:11 -0700
commitd86b2e59c746966e1ae023937b2a6b3b8c16d18b (patch)
treed9af1b1c91f58a13f90fb10f87f14f7337d0affd /lisp/emacs-lisp/package.el
parent1b383ac424b847e5e50cc5e5e1761ebb9d7d658a (diff)
downloademacs-d86b2e59c746966e1ae023937b2a6b3b8c16d18b.tar.gz
emacs-d86b2e59c746966e1ae023937b2a6b3b8c16d18b.tar.bz2
emacs-d86b2e59c746966e1ae023937b2a6b3b8c16d18b.zip
native-comp-available-p is the definitive test
* doc/lispref/compile.texi (Native Compilation): Document native-comp-available-p as the way to test for native compilation. * lisp/emacs-lisp/package.el (package--native-compile-async): * test/lisp/mh-e/mh-utils-tests.el (mh-ensure-native-trampolines): Test for native compilation with native-comp-available-p. Thank you to Andrea Corallo for reviewing this patch.
Diffstat (limited to 'lisp/emacs-lisp/package.el')
-rw-r--r--lisp/emacs-lisp/package.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el
index 62f5fc73417..5445fa970f8 100644
--- a/lisp/emacs-lisp/package.el
+++ b/lisp/emacs-lisp/package.el
@@ -1081,8 +1081,7 @@ This assumes that `pkg-desc' has already been activated with
"Native compile installed package PKG-DESC asynchronously.
This assumes that `pkg-desc' has already been activated with
`package-activate-1'."
- (when (and (featurep 'native-compile)
- (native-comp-available-p))
+ (when (native-comp-available-p)
(let ((warning-minimum-level :error))
(native-compile-async (package-desc-dir pkg-desc) t))))