mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 16:24:18 +00:00
Sometimes we need make
This commit is contained in:
parent
2d3c45e6f0
commit
cf0ce2e20b
1 changed files with 10 additions and 5 deletions
|
|
@ -37,11 +37,16 @@
|
|||
(defvar llvm-core-count
|
||||
(nprocs))
|
||||
|
||||
(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"
|
||||
build-dir llvm-core-count
|
||||
(if verbose "-v" "")
|
||||
(string-join tools-list " ")))
|
||||
(defun lls/ninja-build-tools (build-dir targets &optional verbose)
|
||||
(let ((cmake-make-program
|
||||
(if (string= "Makefile" (car (directory-files build-dir nil "^\\(build\\.ninja$\\|Makefile\\)$")))
|
||||
"make"
|
||||
"ninja")))
|
||||
(format "set -o pipefail && CLICOLOR_FORCE=1 %s -C %s -j %d %s %s 2>&1 | tee ninja.log"
|
||||
cmake-make-program
|
||||
build-dir llvm-core-count
|
||||
(if verbose "-v" "")
|
||||
(string-join targets " "))))
|
||||
|
||||
;; =============================== Init ==============================
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue