mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
feat(cli): add --aot option
Allow ahead-of-time native-compilation during CLI operations that install or update packages. This will not retroactively native-compile already-installed packages, you'll need to use --rebuild to do so. (This is a stop-gap solution until the v3.0 release) Fix: #6811
This commit is contained in:
@ -15,7 +15,8 @@
|
||||
;;; Commands
|
||||
|
||||
(defcli! ((install i))
|
||||
(&flags
|
||||
((aot? ("--aot") "Enable ahead-of-time native-compilation (if available)")
|
||||
&flags
|
||||
(config? ("--config" :yes) "Create `$DOOMDIR' or dummy files therein?")
|
||||
(envfile? ("--env" :yes) "(Re)generate an envvars file? (see `$ doom help env`)")
|
||||
(install? ("--install" :yes) "Auto-install packages?")
|
||||
@ -91,6 +92,10 @@ Change `$DOOMDIR' with the `--doomdir' option, e.g.
|
||||
(when (or yes? (y-or-n-p "Generate an envvar file? (see `doom help env` for details)"))
|
||||
(call! '(env)))))
|
||||
|
||||
(when aot?
|
||||
(after! straight
|
||||
(setq straight--native-comp-available t)))
|
||||
|
||||
;; Install Doom packages
|
||||
(if (eq install? :no)
|
||||
(print! (warn "Not installing plugins, as requested"))
|
||||
|
Reference in New Issue
Block a user