Function: comp--write-bytecode-file
comp--write-bytecode-file is a byte-compiled function defined in
comp.el.gz.
Signature
(comp--write-bytecode-file ELN-FILE)
Documentation
After native compilation write the bytecode file for ELN-FILE.
Make sure that eln file is younger than byte-compiled one and return the filename of this last.
This function can be used only in conjunction with
byte+native-compile byte-to-native-output-buffer-file (see
batch-byte+native-compile).
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/comp.el.gz
;; In use by elisp-mode.el
(defun comp--write-bytecode-file (eln-file)
"After native compilation write the bytecode file for ELN-FILE.
Make sure that eln file is younger than byte-compiled one and
return the filename of this last.
This function can be used only in conjunction with
`byte+native-compile' `byte-to-native-output-buffer-file' (see
`batch-byte+native-compile')."
(pcase byte-to-native-output-buffer-file
(`(,temp-buffer . ,target-file)
(unwind-protect
(progn
(byte-write-target-file temp-buffer target-file)
;; Touch the .eln in order to have it older than the
;; corresponding .elc.
(when (stringp eln-file)
(set-file-times eln-file)))
(kill-buffer temp-buffer))
target-file)))