Don't error out if no targets for byte-compilation could be found
This commit is contained in:
parent
b98e26856d
commit
a47d76f5f1
1 changed files with 41 additions and 41 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue