1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-13 09:32:47 +00:00

* lisp/emacs-lisp/comp.el (comp-effective-async-max-jobs): Handle BSD.

This commit is contained in:
Ashish SHUKLA 2021-04-16 11:13:09 +02:00 committed by Andrea Corallo
parent 686259e65a
commit f9c1008ced

View File

@ -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))