Function: batch-byte+native-compile
batch-byte+native-compile is an autoloaded and byte-compiled function
defined in comp.el.gz.
Signature
(batch-byte+native-compile)
Documentation
Like batch-native-compile, but used for bootstrap.
Generate .elc files in addition to the .eln files.
Force the produced .eln to be outputted in the eln system
directory (the last entry in native-comp-eln-load-path) unless
native-compile-target-directory is non-nil. If the environment
variable "NATIVE_DISABLED" is set, only byte compile.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/comp.el.gz
;;;###autoload
(defun batch-byte+native-compile ()
"Like `batch-native-compile', but used for bootstrap.
Generate .elc files in addition to the .eln files.
Force the produced .eln to be outputted in the eln system
directory (the last entry in `native-comp-eln-load-path') unless
`native-compile-target-directory' is non-nil. If the environment
variable \"NATIVE_DISABLED\" is set, only byte compile."
(comp-ensure-native-compiler)
(if (equal (getenv "NATIVE_DISABLED") "1")
(batch-byte-compile)
(cl-assert (length= command-line-args-left 1))
(let* ((byte+native-compile t)
(native-compile-target-directory
(car (last native-comp-eln-load-path)))
(byte-to-native-output-buffer-file nil)
(eln-file (car (batch-native-compile))))
(comp--write-bytecode-file eln-file)
(setq command-line-args-left (cdr command-line-args-left)))))