]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/comp.el (comp-effective-async-max-jobs): Handle BSD.
authorAshish SHUKLA <ashish@FreeBSD.org>
Fri, 16 Apr 2021 09:13:09 +0000 (11:13 +0200)
committerAndrea Corallo <akrl@sdf.org>
Fri, 16 Apr 2021 09:13:09 +0000 (11:13 +0200)
lisp/emacs-lisp/comp.el

index b5c9cb58260d3b73fe42f37a609762c9364105a3..0122008fc9e361b761f819580b868da8170daf4e 100644 (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))