From ce31880ccc31568de45e53d9bbec5bde69661d1c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 6 Aug 2021 03:06:14 -0400 Subject: [PATCH] fix: doom-system-cpus returning 1 on msys2 build Fix #5347 --- core/autoload/system.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/autoload/system.el b/core/autoload/system.el index bd679656b..dee35d3c7 100644 --- a/core/autoload/system.el +++ b/core/autoload/system.el @@ -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")