[PATCH] D149746: [PowerPC][lit] Recognize triple ppc64le.*-linux

Tulio Magno Quites Machado Filho via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 3 06:53:50 PDT 2023


tuliom created this revision.
Herald added subscribers: steven.zhang, shchenz, delcypher, nemanjai.
Herald added a project: All.
tuliom requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Some Linux distributions, e.g. Red Hat, use the triple
ppc64le-redhat-linux. Add a pattern that treats ppc64le.*-linux as
powerpc64le-linux during test execution.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149746

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
@@ -144,6 +144,8 @@
                 features.add('target-aarch64')
             elif re.match(r'^arm.*', target_triple):
                 features.add('target-arm')
+            if re.match(r'^ppc64le.*-linux', target_triple):
+                features.add('target=powerpc64le-linux')
 
         use_gmalloc = lit_config.params.get('use_gmalloc', None)
         if lit.util.pythonize_bool(use_gmalloc):


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149746.519057.patch
Type: text/x-patch
Size: 589 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230503/65f3db5f/attachment.bin>


More information about the llvm-commits mailing list