doom/compile: don't count excluded test files
This commit is contained in:
parent
f467c29252
commit
f0fc5c5281
1 changed files with 7 additions and 6 deletions
|
@ -592,12 +592,13 @@ If ONLY-RECOMPILE-P is non-nil, only recompile out-of-date files."
|
|||
else if (file-exists-p path)
|
||||
collect path)))
|
||||
(dolist (file el-files)
|
||||
(when (and (not (string-match-p "/test/.+\\.el$" file))
|
||||
(or (not only-recompile-p)
|
||||
(when (or (not only-recompile-p)
|
||||
(let ((elc-file (byte-compile-dest-file file)))
|
||||
(and (file-exists-p elc-file)
|
||||
(file-newer-than-file-p file elc-file)))))
|
||||
(let ((result (byte-compile-file file))
|
||||
(file-newer-than-file-p file elc-file))))
|
||||
(let ((result (if (string-match-p "/test/.+\\.el$" file)
|
||||
'no-byte-compile
|
||||
(byte-compile-file file)))
|
||||
(short-name (file-relative-name file doom-emacs-dir)))
|
||||
(cl-incf
|
||||
(cond ((eq result 'no-byte-compile)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue