aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshish SHUKLA2021-04-16 11:13:09 +0200
committerAndrea Corallo2021-04-16 11:13:09 +0200
commitf9c1008ced59f003d48dd7be39e9ec4aa0f02484 (patch)
treeab876029a62b357d73e3589f12690ec0119508f3
parent686259e65aa7121683c0c65e45ce48adb08ddb58 (diff)
downloademacs-f9c1008ced59f003d48dd7be39e9ec4aa0f02484.tar.gz
emacs-f9c1008ced59f003d48dd7be39e9ec4aa0f02484.zip
* lisp/emacs-lisp/comp.el (comp-effective-async-max-jobs): Handle BSD.
-rw-r--r--lisp/emacs-lisp/comp.el3
1 files changed, 3 insertions, 0 deletions
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'"
3860 ((executable-find "nproc") 3860 ((executable-find "nproc")
3861 (string-to-number 3861 (string-to-number
3862 (shell-command-to-string "nproc"))) 3862 (shell-command-to-string "nproc")))
3863 ((eq 'berkeley-unix system-type)
3864 (string-to-number
3865 (shell-command-to-string "sysctl -n hw.ncpu")))
3863 (t 1)) 3866 (t 1))
3864 2)))) 3867 2))))
3865 comp-async-jobs-number)) 3868 comp-async-jobs-number))