From: Ashish SHUKLA Date: Fri, 16 Apr 2021 09:13:09 +0000 (+0200) Subject: * lisp/emacs-lisp/comp.el (comp-effective-async-max-jobs): Handle BSD. X-Git-Tag: emacs-28.0.90~2727^2~16 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f9c1008ced59f003d48dd7be39e9ec4aa0f02484;p=emacs.git * lisp/emacs-lisp/comp.el (comp-effective-async-max-jobs): Handle BSD. --- diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index b5c9cb58260..0122008fc9e 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el @@ -3860,6 +3860,9 @@ processes from `comp-async-compilations'" ((executable-find "nproc") (string-to-number (shell-command-to-string "nproc"))) + ((eq 'berkeley-unix system-type) + (string-to-number + (shell-command-to-string "sysctl -n hw.ncpu"))) (t 1)) 2)))) comp-async-jobs-number))