diff --git a/clang.spec b/clang.spec index f8ab49c3700892b895711694733d0ec06c10d546..3ce8a940bafaf7b270abec8345f66974b6d6fe29 100644 --- a/clang.spec +++ b/clang.spec @@ -44,7 +44,7 @@ Name: %{pkg_name} Version: %{clang_version} -Release: 33 +Release: 34 Summary: A C language family front-end for LLVM License: NCSA URL: http://llvm.org @@ -249,6 +249,11 @@ pathfix.py -i %{__python3} -pn \ tools/scan-build-py/bin/* \ tools/scan-build-py/libexec/* +# update Gnu target triples, make it friendly to all openEuler based distribution +%if "%{_vendor}" != "openEuler" +sed -i 's/"\([a-zA-Z0-9_-]\+\)-openEuler-linux"/"\1-openEuler-linux", "\1-%{_vendor}-linux"/g' %{_builddir}/%{clang_srcdir}/lib/Driver/ToolChains/Gnu.cpp +%endif + %build %cmake -G Ninja \ -DCLANG_DEFAULT_PIE_ON_LINUX=ON \ @@ -441,6 +446,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C %{__cmak %{python3_sitelib}/clang/ %changelog +* Tue Feb 18 2025 Jia Chao - 17.0.6-34 +- Fix: update target triples for all openEuler based distribution. + * Mon Feb 10 2025 yinchuang - 17.0.6-33 - Fix a test failure with mold linker