From 45568feecfa45da675375a5a6e6565903e46c9cf Mon Sep 17 00:00:00 2001 From: Marien Zwart Date: Sat, 27 Apr 2024 20:02:15 +1000 Subject: [PATCH] Tweak comment, dropping stale TODO Buliding an empty autoloads file is harmless. Removing it would only have been useful if I was able to skip straight.el initialization entirely: now that I'm storing its build cache it no longer helps. --- build-helpers/build-profile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/build-helpers/build-profile b/build-helpers/build-profile index 04a3a7a..31dc50b 100755 --- a/build-helpers/build-profile +++ b/build-helpers/build-profile @@ -45,12 +45,8 @@ ;; Load our generated profile's init.el. Both to get the profile right and to ;; load the advice to make Doom not install straight. (load! doom-module-init-file doom-user-dir t) - ;; HACK: this initializes enough of straight (particularly - ;; straight--build-cache, which doom-profile--generate-package-autoloads hits) - ;; to make Doom work. - ;; - ;; TODO: remove doom-profile--generate-package-autoloads? - ;; Because there are no straight-built packages, it generates an empty file. + ;; Trigger a write of straight's build cache (which we write into the profile + ;; and load again later). (straight-prune-build-cache) (doom-profile-generate))