mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -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)
|
else if (file-exists-p target)
|
||||||
collect target
|
collect target
|
||||||
finally do (setq argv nil)))
|
finally do (setq argv nil)))
|
||||||
(unless compile-targets
|
(if (not compile-targets)
|
||||||
(error "No targets to compile"))
|
(message "No targets to compile")
|
||||||
(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)
|
||||||
@ -837,7 +837,7 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files."
|
|||||||
(error-message-string ex)
|
(error-message-string ex)
|
||||||
"Reverting changes...")
|
"Reverting changes...")
|
||||||
(doom//clean-byte-compiled-files)
|
(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)
|
(defun doom//byte-compile-core (&optional recompile-p)
|
||||||
"Byte compile the core Doom files.
|
"Byte compile the core Doom files.
|
||||||
|
Reference in New Issue
Block a user