diff options
author | Ashish SHUKLA <ashish@FreeBSD.org> | 2021-04-16 11:13:09 +0200 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2021-04-16 11:13:09 +0200 |
commit | f9c1008ced59f003d48dd7be39e9ec4aa0f02484 (patch) | |
tree | ab876029a62b357d73e3589f12690ec0119508f3 | |
parent | 686259e65aa7121683c0c65e45ce48adb08ddb58 (diff) | |
download | emacs-f9c1008ced59f003d48dd7be39e9ec4aa0f02484.tar.gz emacs-f9c1008ced59f003d48dd7be39e9ec4aa0f02484.tar.bz2 emacs-f9c1008ced59f003d48dd7be39e9ec4aa0f02484.zip |
* lisp/emacs-lisp/comp.el (comp-effective-async-max-jobs): Handle BSD.
-rw-r--r-- | lisp/emacs-lisp/comp.el | 3 |
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'" ((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)) |