mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-06-14 04:11:18 +00:00
Rename this function
This commit is contained in:
parent
b961c7e779
commit
78b2de42bf
6 changed files with 8 additions and 8 deletions
|
|
@ -43,7 +43,7 @@
|
|||
(defun ll/ensure-clang-binary-built (dir)
|
||||
;; TODO: assumed build-dir constant, should take as argument and prompt
|
||||
;; further up
|
||||
(lls/ninja-build-tools dir '("clang")))
|
||||
(lls/run-build-command dir '("clang")))
|
||||
|
||||
(defun ll/clang-output-disassemble-command (file)
|
||||
(let ((compiler (lls/prompt-tool "clang$"))
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
(let ((dir (lls/get-llvm-build-dir)))
|
||||
(--> file
|
||||
(list (format "touch %s" it)
|
||||
(lls/ninja-build-tools dir (list (concat it "^")) t))
|
||||
(lls/run-build-command dir (list (concat it "^")) t))
|
||||
(string-join it " && ")
|
||||
(compilation-start it nil
|
||||
(lambda (_)
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
;; further up
|
||||
(let ((dir (lls/get-llvm-build-dir))
|
||||
(tools (ll/get-required-binaries-for-test file)))
|
||||
(lls/ninja-build-tools dir tools)))
|
||||
(lls/run-build-command dir tools)))
|
||||
|
||||
(defun ll/build-lit-command (file action)
|
||||
(format "%s %s %s"
|
||||
|
|
@ -164,7 +164,7 @@
|
|||
(when tools
|
||||
(-->
|
||||
;; TODO: Assuming debug folder, (lls/get-llvm-build-dir) doesn't work
|
||||
(lls/ninja-build-tools "/scratch/benson/tools3/llvm_cgt/build/Debug/llvm" (seq-uniq tools))
|
||||
(lls/run-build-command "/scratch/benson/tools3/llvm_cgt/build/Debug/llvm" (seq-uniq tools))
|
||||
(compilation-start
|
||||
it
|
||||
nil
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
(compilation-start (-->
|
||||
(list
|
||||
(format "touch %s" file)
|
||||
(lls/ninja-build-tools
|
||||
(lls/run-build-command
|
||||
build-dir (list (format "%s^" file)) t))
|
||||
(string-join it " && "))
|
||||
nil
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
;; "llc")))))
|
||||
;; (let* ((buffer-name (funcall lls/name-llvm-build-buffer directory tools)))
|
||||
;; (compilation-start
|
||||
;; (lls/ninja-build-tools (lls/un-trampify directory) tools)
|
||||
;; (lls/run-build-command (lls/un-trampify directory) tools)
|
||||
;; nil
|
||||
;; (lambda (_) buffer-name))))
|
||||
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
"llc")))))
|
||||
(name (funcall lls/name-llvm-build-buffer directory tools))
|
||||
|
||||
(lls/ninja-build-tools (lls/un-trampify directory) tools))
|
||||
(lls/run-build-command (lls/un-trampify directory) tools))
|
||||
|
||||
(provide 'llvm-build-tool)
|
||||
;;; llvm-build-tool.el ends here
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
(defvar llvm-core-count
|
||||
(nprocs))
|
||||
|
||||
(defun lls/ninja-build-tools (build-dir targets &optional verbose)
|
||||
(defun lls/run-build-command (build-dir targets &optional verbose)
|
||||
(let ((cmake-make-program
|
||||
(if (string= "Makefile" (car (directory-files build-dir nil "^\\(build\\.ninja$\\|Makefile\\)$")))
|
||||
"make"
|
||||
|
|
|
|||
Loading…
Reference in a new issue