From 57c086385476385453f4c8fff20583226dceb1da Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 28 Jul 2020 01:48:09 -0400 Subject: [PATCH] Fix aggressive native recompilation of packages On `doom sync` --- core/cli/packages.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/cli/packages.el b/core/cli/packages.el index b2acd1541..95eb8dea2 100644 --- a/core/cli/packages.el +++ b/core/cli/packages.el @@ -263,10 +263,12 @@ declaration) or dependency thereof that hasn't already been." (file-exists-p (straight--modified-dir (or local-repo package))) (cl-loop with want-byte = (straight--byte-compile-package-p recipe) with want-native = (if (require 'comp nil t) (straight--native-compile-package-p recipe)) + with outdated = nil for file in (doom-files-in build-dir :match "\\.el$" :full t) if (or (if want-byte (doom--elc-file-outdated-p file)) (if want-native (doom--eln-file-outdated-p file))) - return t)) + do (setq outdated t) + finally return outdated)) (puthash package t straight--packages-to-rebuild)))) (straight-use-package (intern package)))) (progn