From cba240f88a33c0bb73740cd52784d6babdb6c96f Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 15 Sep 2022 21:51:29 +0200 Subject: [PATCH] refactor(cli): move native-comp call into guard Each of these functions have a native-comp guard, which may be overkill, but for the time being they should be grouped together, to indicate their relationship. --- lisp/cli/packages.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/cli/packages.el b/lisp/cli/packages.el index c2f78c577..8e1b9415c 100644 --- a/lisp/cli/packages.el +++ b/lisp/cli/packages.el @@ -307,8 +307,8 @@ declaration) or dependency thereof that hasn't already been." (error (signal 'doom-package-error (list package e)))))) (progn - (doom-packages--compile-site-files) (when (featurep 'native-compile) + (doom-packages--compile-site-files) (doom-packages--wait-for-native-compile-jobs) (doom-packages--write-missing-eln-errors)) (print! (success "\033[KInstalled %d packages") (length built))) @@ -371,8 +371,8 @@ declaration) or dependency thereof that hasn't already been." (puthash package t straight--packages-to-rebuild)))) (straight-use-package (intern package)))) (progn - (doom-packages--compile-site-files) (when (featurep 'native-compile) + (doom-packages--compile-site-files) (doom-packages--wait-for-native-compile-jobs) (doom-packages--write-missing-eln-errors)) ;; HACK Every time you save a file in a package that straight tracks,