From f6c7c136346b339c1569bc0b61a72aa5ce7d586e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 18 Jun 2018 14:56:24 +0200 Subject: [PATCH] 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. --- core/core-dispatcher.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-dispatcher.el b/core/core-dispatcher.el index 0ae3c0e27..1f45166fe 100644 --- a/core/core-dispatcher.el +++ b/core/core-dispatcher.el @@ -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)