[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/native-comp f9c1008: * lisp/emacs-lisp/comp.el (comp-effective-a
From: |
Andrea Corallo |
Subject: |
feature/native-comp f9c1008: * lisp/emacs-lisp/comp.el (comp-effective-async-max-jobs): Handle BSD. |
Date: |
Fri, 16 Apr 2021 05:18:39 -0400 (EDT) |
branch: feature/native-comp
commit f9c1008ced59f003d48dd7be39e9ec4aa0f02484
Author: Ashish SHUKLA <ashish@FreeBSD.org>
Commit: Andrea Corallo <akrl@sdf.org>
* lisp/emacs-lisp/comp.el (comp-effective-async-max-jobs): Handle BSD.
---
lisp/emacs-lisp/comp.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index b5c9cb5..0122008 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))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- feature/native-comp f9c1008: * lisp/emacs-lisp/comp.el (comp-effective-async-max-jobs): Handle BSD.,
Andrea Corallo <=