From d0619e2324f29bea403ced12b2d63b4e7aaa7698 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Thu, 15 Aug 2024 16:35:03 +0300 Subject: [PATCH] - Use x86_64-redhat-linux as default gcc triple for x86_64_v2 --- clang.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/clang.spec b/clang.spec index 827cb96..fcd766c 100644 --- a/clang.spec +++ b/clang.spec @@ -81,7 +81,7 @@ Name: %pkg_name Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}} -Release: 1%{?dist} +Release: 1%{?dist}.alma.1 Summary: A C language family front-end for LLVM License: Apache-2.0 WITH LLVM-exception OR NCSA @@ -546,8 +546,12 @@ ln -s ../../%{install_bindir}/clang++ %{buildroot}%{install_bindir}/clang++-%{m # Install config file for clang %if %{maj_ver} >=18 mkdir -p %{buildroot}%{_sysconfdir}/%{name}/ +%ifarch x86_64_v2 +echo "--gcc-triple=x86_64-redhat-linux" >> %{buildroot}%{_sysconfdir}/%{name}/clang.cfg +%else echo "--gcc-triple=%{_target_cpu}-redhat-linux" >> %{buildroot}%{_sysconfdir}/%{name}/clang.cfg %endif +%endif # Fix permissions of scan-view scripts chmod a+x %{buildroot}%{install_datadir}/scan-view/{Reporter.py,startfile.py} @@ -777,6 +781,9 @@ mv ./libclang-cpp.so.%{compat_maj_ver} "$compat_lib" %endif %changelog +* Thu Aug 15 2024 Eduard Abdullin - 18.1.8-1.alma.1 +- Use x86_64-redhat-linux as default gcc triple for x86_64_v2 + * Tue Jul 23 2024 Tulio Magno Quites Machado Filho - 18.1.8-1 - Update to LLVM 18.1.8 (RHEL-28056) - Remove llvm17 compat package (RHEL-30890)