Skip to content

Commit 7f9b068

Browse files
committed
[PowerPC][lit] Recognize triple ppc64le.*-linux
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. Reviewed By: qiucf Differential Revision: https://reviews.llvm.org/D149746
1 parent 95715dd commit 7f9b068

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/utils/lit/lit/llvm/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ def __init__(self, lit_config, config):
147147
features.add("target-aarch64")
148148
elif re.match(r"^arm.*", target_triple):
149149
features.add("target-arm")
150+
if re.match(r'^ppc64le.*-linux', target_triple):
151+
features.add('target=powerpc64le-linux')
150152

151153
use_gmalloc = lit_config.params.get("use_gmalloc", None)
152154
if lit.util.pythonize_bool(use_gmalloc):

0 commit comments

Comments
 (0)