[llvm] [LLVM][lit] add system-cygwin feature (PR #152780)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 8 12:30:53 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-testing-tools

Author: None (jeremyd2019)

<details>
<summary>Changes</summary>

There are a few tests in clang that gate on system-windows but also don't work on Cygwin, so add a system-cygwin feature for them to use.

---
Full diff: https://github.com/llvm/llvm-project/pull/152780.diff


1 Files Affected:

- (modified) llvm/utils/lit/lit/llvm/config.py (+2) 


``````````diff
diff --git a/llvm/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py
index 649636d4bcf4c..b04fb25f3c030 100644
--- a/llvm/utils/lit/lit/llvm/config.py
+++ b/llvm/utils/lit/lit/llvm/config.py
@@ -107,6 +107,8 @@ def __init__(self, lit_config, config):
             features.add("system-solaris")
         elif platform.system() == "OS/390":
             features.add("system-zos")
+        elif sys.platform == "cygwin":
+            features.add("system-cygwin")
 
         # Native compilation: host arch == default triple arch
         # Both of these values should probably be in every site config (e.g. as

``````````

</details>


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


More information about the llvm-commits mailing list