[llvm] [lit] Prevent "lld" from being substituted by LIT in llvm-driver tests (PR #191893)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 14:50:21 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r origin/main...HEAD llvm/utils/lit/lit/llvm/config.py
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- config.py	2026-04-13 21:33:47.000000 +0000
+++ config.py	2026-04-13 21:49:52.029842 +0000
@@ -826,11 +826,17 @@
         )
         self.config.substitutions.append(
             (" %clang-cl ", '''\"*** invalid substitution, use '%clang_cl'. ***\"''')
         )
 
-    def use_lld(self, additional_tool_dirs=[], required=True, use_installed=False, no_substitutions=()):
+    def use_lld(
+        self,
+        additional_tool_dirs=[],
+        required=True,
+        use_installed=False,
+        no_substitutions=(),
+    ):
         """Configure the test suite to be able to invoke lld.
 
         Sets up some environment variables important to lld, locates a
         just-built or optionally an installed lld, and add a set of standard
         substitutions useful to any test suite that makes use of lld.

``````````

</details>


https://github.com/llvm/llvm-project/pull/191893


More information about the llvm-commits mailing list