mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 16:24:18 +00:00
Try to autodetect number of cores
This commit is contained in:
parent
1bc84cede3
commit
93871ac98a
1 changed files with 5 additions and 1 deletions
|
|
@ -31,7 +31,11 @@
|
|||
|
||||
;; =========================== LLVM Rebuild ==========================
|
||||
|
||||
(defvar llvm-core-count 8)
|
||||
(defvar llvm-core-count
|
||||
(--> "nproc"
|
||||
(shell-command-to-string it)
|
||||
(string-to-number it)
|
||||
(- it 16)))
|
||||
|
||||
(defun lls/ninja-build-tools (build-dir tools-list &optional verbose)
|
||||
(format "set -o pipefail && CLICOLOR_FORCE=1 ninja -C %s -j %d %s %s 2>&1 | tee ninja.log"
|
||||
|
|
|
|||
Loading…
Reference in a new issue