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:
parent
2c17f71965
commit
e3fdfee1c5
3 changed files with 19 additions and 3 deletions
|
@ -28,6 +28,7 @@
|
|||
(jobs ("-j" "--jobs" num) "How many threads to use for native compilation")
|
||||
(rebuild? ("-b" "--rebuild") "Rebuild all installed packages, unconditionally")
|
||||
(nobuild? ("-B") "Don't rebuild packages when hostname or Emacs version has changed")
|
||||
(aot? ("--aot") "Natively compile packages ahead-of-time (if available)")
|
||||
&context context)
|
||||
"Synchronize your config with Doom Emacs.
|
||||
|
||||
|
@ -48,10 +49,17 @@ stale.
|
|||
OPTIONS:
|
||||
-j, --jobs
|
||||
Defaults to the maximum number of threads (or 1, if your CPU's threadcount
|
||||
can't be determined)."
|
||||
can't be determined).
|
||||
--aot
|
||||
Will only perform AOT native-compilation for packages updated/installed
|
||||
during the execution of this command. Use --rebuild as well to do so for all
|
||||
packages."
|
||||
:benchmark t
|
||||
(when (doom-profiles-bootloadable-p)
|
||||
(call! '(profiles sync "--reload")))
|
||||
(when aot?
|
||||
(after! straight
|
||||
(setq straight--native-comp-available t)))
|
||||
(when jobs
|
||||
(setq native-comp-async-jobs-number (truncate jobs)))
|
||||
(run-hooks 'doom-before-sync-hook)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue