[PATCH] D68135: [lit] Set the target-windows feature for mingw triples as well

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 27 05:59:12 PDT 2019


mstorsjo created this revision.
mstorsjo added a reviewer: rnk.
Herald added a subscriber: delcypher.
Herald added a project: LLVM.

These triples are normalized into *-windows-gnu.


Repository:
  rL LLVM

https://reviews.llvm.org/D68135

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


Index: llvm/utils/lit/lit/llvm/config.py
===================================================================
--- llvm/utils/lit/lit/llvm/config.py
+++ llvm/utils/lit/lit/llvm/config.py
@@ -93,7 +93,7 @@
                         'ASAN_OPTIONS', 'detect_leaks=1', append_path=True)
             if re.match(r'^x86_64.*-linux', target_triple):
                 features.add('x86_64-linux')
-            if re.match(r'.*-windows-msvc$', target_triple):
+            if re.match(r'.*-windows-msvc$', target_triple) or re.match(r'.*-windows-gnu$', target_triple):
                 features.add('target-windows')
             if re.match(r'^i.86.*', target_triple):
                 features.add('target-x86')


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68135.222152.patch
Type: text/x-patch
Size: 703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190927/9d0f83cb/attachment.bin>


More information about the llvm-commits mailing list