Skip to content

Commit

Permalink
Merge branch feature/native-comp into pgtk-nativecomp
Browse files Browse the repository at this point in the history
  • Loading branch information
flatwhatson committed Mar 16, 2021
2 parents 52cb64d + 3e133cc commit 64425ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lisp/emacs-lisp/comp.el
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ the .eln output directory."

(defvar no-native-compile nil
"Non-nil to prevent native-compiling of Emacs Lisp code.
Note that when `no-byte-compile' is set to non-nil it overrides the value of
`no-native-compile'.
This is normally set in local file variables at the end of the elisp file:
\;; Local Variables:\n;; no-native-compile: t\n;; End: ")
Expand Down Expand Up @@ -1313,7 +1315,8 @@ clashes."
(cl-defmethod comp-spill-lap-function ((filename string))
"Byte-compile FILENAME, spilling data from the byte compiler."
(byte-compile-file filename)
(when (alist-get 'no-native-compile byte-native-qualities)
(when (or (null byte-native-qualities)
(alist-get 'no-native-compile byte-native-qualities))
(throw 'no-native-compile nil))
(unless byte-to-native-top-level-forms
(signal 'native-compiler-error-empty-byte filename))
Expand Down

0 comments on commit 64425ee

Please sign in to comment.