mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Don't error out if no targets for byte-compilation could be found
This commit is contained in:
@ -797,8 +797,8 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files."
|
||||
else if (file-exists-p target)
|
||||
collect target
|
||||
finally do (setq argv nil)))
|
||||
(unless compile-targets
|
||||
(error "No targets to compile"))
|
||||
(if (not compile-targets)
|
||||
(message "No targets to compile")
|
||||
(condition-case ex
|
||||
(let ((use-package-expand-minimally t))
|
||||
(push (expand-file-name "init.el" doom-emacs-dir) compile-targets)
|
||||
@ -837,7 +837,7 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files."
|
||||
(error-message-string ex)
|
||||
"Reverting changes...")
|
||||
(doom//clean-byte-compiled-files)
|
||||
(message! (green "Finished (nothing was byte-compiled)"))))))))
|
||||
(message! (green "Finished (nothing was byte-compiled)")))))))))
|
||||
|
||||
(defun doom//byte-compile-core (&optional recompile-p)
|
||||
"Byte compile the core Doom files.
|
||||
|
Reference in New Issue
Block a user