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.
This commit is contained in:
Henrik Lissner 2022-09-15 21:51:29 +02:00
parent a023482c36
commit cba240f88a
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -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,