diff --git a/D149746.diff b/D149746.diff new file mode 100644 index 0000000..8a6d530 --- /dev/null +++ b/D149746.diff @@ -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): + diff --git a/python-lit.spec b/python-lit.spec index d7d0895..f9574cc 100644 --- a/python-lit.spec +++ b/python-lit.spec @@ -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 - 16.0.3-2 +- Add a patch that accepts ppc64le as a valid triple + * Tue May 09 2023 Tulio Magno Quites Machado Filho - 16.0.3-1 - Update to LLVM 16.0.3