New autoload/system.el core library

This commit is contained in:
Henrik Lissner 2021-03-01 11:02:07 -05:00
parent 49c3c84d7f
commit c5e3f4d632
4 changed files with 108 additions and 49 deletions

View file

@ -167,7 +167,7 @@ users).")
;; things ahead-of-time in a non-interactive session.
(defun doom--comp-use-all-cores-a ()
(if (zerop comp-async-jobs-number)
(setq comp-num-cpus (doom-num-cpus))
(setq comp-num-cpus (doom-system-cpus))
comp-async-jobs-number))
(advice-add #'comp-effective-async-max-jobs :override #'doom--comp-use-all-cores-a))