python-lit/D149746.diff
Tulio Magno Quites Machado Filho 4fd3acc73b Add a patch that accepts ppc64le-linux as a valid triple
Some tests in clang and flang expect the triple powerpc64le-linux and
fail if ppc64le-linux is used. The new patch ensure both triples are
interpreted the same way.
2023-05-15 17:10:37 -03:00

14 lines
568 B
Diff

diff --git a/llvm/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py
--- a/llvm/utils/lit/lit/llvm/config.py
+++ b/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):