- Use x86_64-redhat-linux as default gcc triple for x86_64_v2

This commit is contained in:
eabdullin 2024-08-15 16:35:03 +03:00
parent edecabd153
commit d0619e2324

View File

@ -81,7 +81,7 @@
Name: %pkg_name Name: %pkg_name
Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}} 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 Summary: A C language family front-end for LLVM
License: Apache-2.0 WITH LLVM-exception OR NCSA 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 # Install config file for clang
%if %{maj_ver} >=18 %if %{maj_ver} >=18
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/ 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 echo "--gcc-triple=%{_target_cpu}-redhat-linux" >> %{buildroot}%{_sysconfdir}/%{name}/clang.cfg
%endif %endif
%endif
# Fix permissions of scan-view scripts # Fix permissions of scan-view scripts
chmod a+x %{buildroot}%{install_datadir}/scan-view/{Reporter.py,startfile.py} 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 %endif
%changelog %changelog
* Thu Aug 15 2024 Eduard Abdullin <eabdullin@almalinux.org> - 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 <tuliom@redhat.com> - 18.1.8-1 * Tue Jul 23 2024 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 18.1.8-1
- Update to LLVM 18.1.8 (RHEL-28056) - Update to LLVM 18.1.8 (RHEL-28056)
- Remove llvm17 compat package (RHEL-30890) - Remove llvm17 compat package (RHEL-30890)