Function: comp-compile-ctxt-to-file
comp-compile-ctxt-to-file is a byte-compiled function defined in
comp.el.gz.
Signature
(comp-compile-ctxt-to-file NAME)
Documentation
Compile as native code the current context naming it NAME.
Prepare every function for final compilation and drive the C back-end.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/comp.el.gz
(defun comp-compile-ctxt-to-file (name)
"Compile as native code the current context naming it NAME.
Prepare every function for final compilation and drive the C back-end."
(let ((dir (file-name-directory name)))
(comp-finalize-relocs)
(maphash (lambda (_ f)
(comp-log-func f 1))
(comp-ctxt-funcs-h comp-ctxt))
(unless (file-exists-p dir)
;; In case it's created in the meanwhile.
(ignore-error file-already-exists
(make-directory dir t)))
(comp--compile-ctxt-to-file name)))