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:
parent
686259e65a
commit
f9c1008ced
@ -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…
Reference in New Issue
Block a user