fix(cli): don't AOT native-comp if disabled

This commit is contained in:
Henrik Lissner 2024-08-15 15:46:47 -04:00
parent dc035a652f
commit 3a2c234b1c
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -300,7 +300,8 @@ list remains lean."
(and (eq (car-safe build) :not)
(setq want-byte-compile (not want-byte-compile)
want-native-compile (not want-native-compile)))
(unless (featurep 'native-compile)
(when (or (not (featurep 'native-compile))
(not straight--native-comp-available))
(setq want-native-compile nil))
(and (or want-byte-compile want-native-compile)
(or (file-newer-than-file-p repo-dir build-dir)