[PATCH] D39482: Add system-linux to allow tests run with llvm-lit to restrict themselves to linux

Jake Ehrlich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 31 17:19:20 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL317055: Add system-linux to allow tests run with llvm-lit to restrict themselves to… (authored by jakehehrlich).

Changed prior to commit:
  https://reviews.llvm.org/D39482?vs=121079&id=121092#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D39482

Files:
  llvm/trunk/utils/lit/lit/llvm/config.py


Index: llvm/trunk/utils/lit/lit/llvm/config.py
===================================================================
--- llvm/trunk/utils/lit/lit/llvm/config.py
+++ llvm/trunk/utils/lit/lit/llvm/config.py
@@ -45,14 +45,16 @@
             features.add('shell')
 
         # Running on Darwin OS
-        if platform.system() in ['Darwin']:
+        if platform.system() == 'Darwin':
             # FIXME: lld uses the first, other projects use the second.
             # We should standardize on the former.
             features.add('system-linker-mach-o')
             features.add('system-darwin')
-        elif platform.system() in ['Windows']:
+        elif platform.system() == 'Windows':
             # For tests that require Windows to run.
             features.add('system-windows')
+        elif platform.system() == "Linux":
+            features.add('system-linux')
 
         # Native compilation: host arch == default triple arch
         # Both of these values should probably be in every site config (e.g. as


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39482.121092.patch
Type: text/x-patch
Size: 1023 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171101/d340f8e4/attachment.bin>


More information about the llvm-commits mailing list