Try to autodetect number of cores

This commit is contained in:
Benson Chu 2024-12-25 12:31:38 -06:00
parent 1bc84cede3
commit 93871ac98a

View file

@ -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"