Clean up elcs only if compiling core or everything

Sometimes we only want to compile one module, without getting rid of all
our other compiled files.
This commit is contained in:
Henrik Lissner 2018-06-18 14:56:24 +02:00
parent 32954ecb69
commit f6c7c13634
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -711,7 +711,8 @@ If RECOMPILE-P is non-nil, only recompile out-of-date files."
(message "Aborting.")
(cl-return-from 'byte-compile)))
(unless recompile-p
(doom-clean-byte-compiled-files)
(when (or (null modules) (equal modules '(":core")))
(doom-clean-byte-compiled-files))
(doom-reload-autoloads))
(let (doom-emacs-changed-p
noninteractive)