fix: doom-system-cpus returning 1 on msys2 build

Fix #5347
This commit is contained in:
Henrik Lissner 2021-08-06 03:06:14 -04:00
parent 6c52e33302
commit ce31880ccc

View file

@ -84,7 +84,7 @@ Tries to be portable. Returns 1 if cannot be determined."
(or (get 'doom-system-cpus 'cached-value)
(put 'doom-system-cpus 'cached-value
(let ((cpus
(cond ((eq 'windows-nt system-type)
(cond ((fboundp 'w32-get-nproc)
(w32-get-nproc))
((getenv "NUMBER_OF_PROCESSORS"))
((executable-find "nproc")