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.
This commit is contained in:
Tulio Magno Quites Machado Filho 2023-05-03 14:50:35 -03:00
parent c2cbc15f68
commit 4fd3acc73b
2 changed files with 19 additions and 1 deletions

13
D149746.diff Normal file
View File

@ -0,0 +1,13 @@
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):

View File

@ -6,7 +6,7 @@
Name: python-lit
Version: %{lit_version}%{?rc_ver:~rc%{rc_ver}}
Release: 1%{?dist}
Release: 2%{?dist}
BuildArch: noarch
License: NCSA
@ -16,6 +16,8 @@ Source0: %{pypi_source lit %{lit_version}%{?rc_ver:rc%{rc_ver}}%{?post_ver:.post
# Remove the license file if it gets included in the tarball again.
Source1: https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-%{lit_version}%{?rc_ver:rc%{rc_ver}}/llvm/utils/lit/LICENSE.TXT
Patch0: D149746.diff
# for file check
%if %{with check}
BuildRequires: llvm-test
@ -60,6 +62,9 @@ sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/lit/*.p
%{_bindir}/lit
%changelog
* Mon May 15 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.3-2
- Add a patch that accepts ppc64le as a valid triple
* Tue May 09 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 16.0.3-1
- Update to LLVM 16.0.3