summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/bytecomp.el
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2021-03-16 09:10:31 +0100
committerAndrea Corallo <akrl@sdf.org>2021-03-16 09:12:46 +0100
commitf3abb1711811f43d1504d8e48f0d27e015b46d6c (patch)
treead831e061f4b1d11902caed5a47c98345aa113bb /lisp/emacs-lisp/bytecomp.el
parent6810635bdd109d3df5b6b946e8c9eb11035b579c (diff)
downloademacs-f3abb1711811f43d1504d8e48f0d27e015b46d6c.tar.gz
emacs-f3abb1711811f43d1504d8e48f0d27e015b46d6c.tar.bz2
emacs-f3abb1711811f43d1504d8e48f0d27e015b46d6c.zip
Have `no-byte-compile' implies also `no-native-compile'.
* lisp/emacs-lisp/comp.el (no-native-compile): Update doctring. * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): when `no-byte-compile' is set to non-nil it overrides this.
Diffstat (limited to 'lisp/emacs-lisp/bytecomp.el')
-rw-r--r--lisp/emacs-lisp/bytecomp.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index b04286c34ae..6b874b69167 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -2277,7 +2277,8 @@ With argument ARG, insert value in current buffer after the form."
(push `(comp-native-driver-options . ,comp-native-driver-options)
byte-native-qualities)
(defvar no-native-compile)
- (push `(no-native-compile . ,no-native-compile)
+ ;; `no-byte-compile' implies also `no-native-compile'.
+ (push `(no-native-compile . ,(or no-byte-compile no-native-compile))
byte-native-qualities))
;; Compile the forms from the input buffer.