mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Byte-compile Doom in the correct order
That is, modules should be byte-compiled in the order they're in in your doom! block.
This commit is contained in:
@ -101,9 +101,10 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files."
|
|||||||
;; If no targets were supplied, then we use your module list.
|
;; If no targets were supplied, then we use your module list.
|
||||||
(appendq! target-dirs
|
(appendq! target-dirs
|
||||||
(list doom-core-dir)
|
(list doom-core-dir)
|
||||||
;; Omit `doom-private-dir', which is always first
|
(nreverse
|
||||||
(cl-remove-if-not (lambda (path) (file-in-directory-p path doom-emacs-dir))
|
(cl-remove-if-not (lambda (path) (file-in-directory-p path doom-emacs-dir))
|
||||||
(nreverse (cdr (doom-module-load-path))))))
|
;; Omit `doom-private-dir', which is always first
|
||||||
|
(cdr (doom-module-load-path))))))
|
||||||
|
|
||||||
;; Assemble el files we want to compile; taking into account that MODULES
|
;; Assemble el files we want to compile; taking into account that MODULES
|
||||||
;; may be a list of MODULE/SUBMODULE strings from the command line.
|
;; may be a list of MODULE/SUBMODULE strings from the command line.
|
||||||
|
Reference in New Issue
Block a user