From f9c1008ced59f003d48dd7be39e9ec4aa0f02484 Mon Sep 17 00:00:00 2001 From: Ashish SHUKLA Date: Fri, 16 Apr 2021 11:13:09 +0200 Subject: [PATCH] * lisp/emacs-lisp/comp.el (comp-effective-async-max-jobs): Handle BSD. --- lisp/emacs-lisp/comp.el | 3 +++ 1 file changed, 3 insertions(+) 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)) -- 2.39.5