Exclude {packages,doctor}.el from make compile
These two files shouldn't be byte-compiled. Until now it was expected that you'd include a no-byte-compile: t header in these files. This is more convenient.
This commit is contained in:
parent
673d3ed147
commit
a1e49d174a
1 changed files with 6 additions and 5 deletions
|
@ -903,11 +903,12 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files."
|
||||||
(condition-case ex
|
(condition-case ex
|
||||||
(let ((use-package-expand-minimally t))
|
(let ((use-package-expand-minimally t))
|
||||||
(push (expand-file-name "init.el" doom-emacs-dir) compile-targets)
|
(push (expand-file-name "init.el" doom-emacs-dir) compile-targets)
|
||||||
(dolist (target (cl-delete-duplicates (mapcar #'file-truename compile-targets) :test #'string=))
|
(dolist (target (cl-delete-duplicates (mapcar #'file-truename compile-targets) :test #'equal))
|
||||||
(when (or (not recompile-p)
|
(when (and (not (string-match-p "/\\(packages\\|doctor\\)\\.el$" target))
|
||||||
|
(or (not recompile-p)
|
||||||
(let ((elc-file (byte-compile-dest-file target)))
|
(let ((elc-file (byte-compile-dest-file target)))
|
||||||
(and (file-exists-p elc-file)
|
(and (file-exists-p elc-file)
|
||||||
(file-newer-than-file-p target elc-file))))
|
(file-newer-than-file-p target elc-file)))))
|
||||||
(let ((result (if (doom-packages--read-if-cookies target)
|
(let ((result (if (doom-packages--read-if-cookies target)
|
||||||
(byte-compile-file target)
|
(byte-compile-file target)
|
||||||
'no-byte-compile))
|
'no-byte-compile))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue