* lisp/emacs-lisp/comp.el (comp-effective-async-max-jobs): Handle BSD.
This commit is contained in:
parent
686259e65a
commit
f9c1008ced
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue