[llvm] [llvm][lit] Omit vendor in triples for "native" feature (PR #136325)

via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 18 09:52:33 PDT 2025


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 HEAD~1...HEAD llvm/utils/lit/lit/llvm/config.py
``````````

</details>

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

``````````diff
--- config.py	2025-04-18 16:42:18.000000 +0000
+++ config.py	2025-04-18 16:52:05.214804 +0000
@@ -123,11 +123,13 @@
         # part of the standard header.  But currently they aren't)
         host_triple = getattr(config, "host_triple", None)
         target_triple = getattr(config, "target_triple", None)
         features.add("host=%s" % host_triple)
         features.add("target=%s" % target_triple)
-        if host_triple and remove_triple_vendor(host_triple) == remove_triple_vendor(target_triple):
+        if host_triple and remove_triple_vendor(host_triple) == remove_triple_vendor(
+            target_triple
+        ):
             features.add("native")
 
         # Sanitizers.
         sanitizers = getattr(config, "llvm_use_sanitizer", "")
         sanitizers = frozenset(x.lower() for x in sanitizers.split(";"))

``````````

</details>


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


More information about the llvm-commits mailing list