From 78b2de42bf20393b94abe49f1c6032b0b735cf41 Mon Sep 17 00:00:00 2001 From: Benson Chu Date: Fri, 27 Mar 2026 10:35:49 -0500 Subject: [PATCH] Rename this function --- lisp/llvm-lib/llvm-act-on-file/act-on-c-file.el | 2 +- lisp/llvm-lib/llvm-act-on-file/act-on-llvm-source-file.el | 2 +- lisp/llvm-lib/llvm-act-on-file/act-on-test-file.el | 4 ++-- lisp/llvm-lib/llvm-build-command.el | 2 +- lisp/llvm-lib/llvm-build-tool.el | 4 ++-- lisp/llvm-lib/llvm-shared.el | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lisp/llvm-lib/llvm-act-on-file/act-on-c-file.el b/lisp/llvm-lib/llvm-act-on-file/act-on-c-file.el index abb1420..225bf4f 100644 --- a/lisp/llvm-lib/llvm-act-on-file/act-on-c-file.el +++ b/lisp/llvm-lib/llvm-act-on-file/act-on-c-file.el @@ -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$")) diff --git a/lisp/llvm-lib/llvm-act-on-file/act-on-llvm-source-file.el b/lisp/llvm-lib/llvm-act-on-file/act-on-llvm-source-file.el index 741183a..d579992 100644 --- a/lisp/llvm-lib/llvm-act-on-file/act-on-llvm-source-file.el +++ b/lisp/llvm-lib/llvm-act-on-file/act-on-llvm-source-file.el @@ -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 (_) diff --git a/lisp/llvm-lib/llvm-act-on-file/act-on-test-file.el b/lisp/llvm-lib/llvm-act-on-file/act-on-test-file.el index eecec7e..10bec9e 100644 --- a/lisp/llvm-lib/llvm-act-on-file/act-on-test-file.el +++ b/lisp/llvm-lib/llvm-act-on-file/act-on-test-file.el @@ -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 diff --git a/lisp/llvm-lib/llvm-build-command.el b/lisp/llvm-lib/llvm-build-command.el index e390365..d70f7f7 100644 --- a/lisp/llvm-lib/llvm-build-command.el +++ b/lisp/llvm-lib/llvm-build-command.el @@ -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 diff --git a/lisp/llvm-lib/llvm-build-tool.el b/lisp/llvm-lib/llvm-build-tool.el index 9432fc2..b2c5088 100644 --- a/lisp/llvm-lib/llvm-build-tool.el +++ b/lisp/llvm-lib/llvm-build-tool.el @@ -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 diff --git a/lisp/llvm-lib/llvm-shared.el b/lisp/llvm-lib/llvm-shared.el index bae6dcc..0088e80 100644 --- a/lisp/llvm-lib/llvm-shared.el +++ b/lisp/llvm-lib/llvm-shared.el @@ -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"