[llvm] [lit] Use dbg instead of note for tool detection (PR #193662)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 22 21:56:23 PDT 2026


https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/193662

Also remove unused parameter `quiet`.

Don't output lines like these by default:
```
llvm-lit: llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using split-file: out/z/bin/split-file
llvm-lit: llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using yaml2obj: out/z/bin/yaml2obj
llvm-lit: llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using llvm-objcopy: out/z/bin/llvm-objcopy
llvm-lit: llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: out/z/bin/ld.lld
llvm-lit: llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: out/z/bin/lld-link
llvm-lit: llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: out/z/bin/ld64.lld
llvm-lit: llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: out/z/bin/wasm-ld
llvm-lit: llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using clang: out/z/bin/clang
llvm-lit: llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using clang: out/z/bin/clang
```

I don't believe this information is usefull for a typical test run.

Now they can be retrived with 'LIT_OPTS=--debug ninja check-llvm'


>From 585f855ab2d992f6e864959b763f7b2a3abc30f9 Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Wed, 22 Apr 2026 21:56:06 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
 =?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Created using spr 1.3.7
---
 llvm/utils/lit/lit/llvm/config.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/llvm/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py
index 9713f4333d99a..2a6c60fab6125 100644
--- a/llvm/utils/lit/lit/llvm/config.py
+++ b/llvm/utils/lit/lit/llvm/config.py
@@ -527,7 +527,6 @@ def use_llvm_tool(
         name,
         search_env=None,
         required=False,
-        quiet=False,
         search_paths=None,
         use_installed=False,
     ):
@@ -565,8 +564,7 @@ def use_llvm_tool(
                 self.lit_config.params.get("use_normalized_slashes")
             ):
                 tool = tool.replace("\\", "/")
-            if not quiet:
-                self.lit_config.note("using {}: {}".format(name, tool))
+            self.lit_config.dbg("using {}: {}".format(name, tool))
         return tool
 
     def _get_clang_paths(self, additional_tool_dirs):



More information about the llvm-commits mailing list