mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
@ -84,7 +84,7 @@ Tries to be portable. Returns 1 if cannot be determined."
|
|||||||
(or (get 'doom-system-cpus 'cached-value)
|
(or (get 'doom-system-cpus 'cached-value)
|
||||||
(put 'doom-system-cpus 'cached-value
|
(put 'doom-system-cpus 'cached-value
|
||||||
(let ((cpus
|
(let ((cpus
|
||||||
(cond ((eq 'windows-nt system-type)
|
(cond ((fboundp 'w32-get-nproc)
|
||||||
(w32-get-nproc))
|
(w32-get-nproc))
|
||||||
((getenv "NUMBER_OF_PROCESSORS"))
|
((getenv "NUMBER_OF_PROCESSORS"))
|
||||||
((executable-find "nproc")
|
((executable-find "nproc")
|
||||||
|
Reference in New Issue
Block a user