mirror of
https://src.fedoraproject.org/rpms/llvm.git
synced 2024-11-25 01:35:17 +00:00
Add triple prefix to clang config files
See https://src.fedoraproject.org/rpms/clang/pull-request/240
This commit is contained in:
parent
e49125cc6b
commit
169d5a1490
2 changed files with 4 additions and 2 deletions
|
@ -319,7 +319,8 @@
|
||||||
%{install_bindir}/clang++-%{maj_ver}
|
%{install_bindir}/clang++-%{maj_ver}
|
||||||
%{install_bindir}/clang-cl
|
%{install_bindir}/clang-cl
|
||||||
%{install_bindir}/clang-cpp
|
%{install_bindir}/clang-cpp
|
||||||
%{_sysconfdir}/%{pkg_name_clang}/clang.cfg
|
%{_sysconfdir}/%{pkg_name_clang}/%{_target_platform}-clang.cfg
|
||||||
|
%{_sysconfdir}/%{pkg_name_clang}/%{_target_platform}-clang++.cfg
|
||||||
%if %{without compat_build}
|
%if %{without compat_build}
|
||||||
%{_mandir}/man1/clang.1.gz
|
%{_mandir}/man1/clang.1.gz
|
||||||
%{_mandir}/man1/clang++.1.gz
|
%{_mandir}/man1/clang++.1.gz
|
||||||
|
|
|
@ -198,7 +198,8 @@ ln -s %{_datadir}/clang/clang-format-diff.py %{buildroot}%{_bindir}/clang-format
|
||||||
# Install config file for clang
|
# Install config file for clang
|
||||||
%if %{maj_ver} >=18
|
%if %{maj_ver} >=18
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/%{pkg_name_clang}/
|
mkdir -p %{buildroot}%{_sysconfdir}/%{pkg_name_clang}/
|
||||||
echo "--gcc-triple=%{_arch}-redhat-linux" >> %{buildroot}%{_sysconfdir}/%{pkg_name_clang}/clang.cfg
|
echo "--gcc-triple=%{_target_cpu}-redhat-linux" >> %{buildroot}%{_sysconfdir}/%{pkg_name_clang}/%{_target_platform}-clang.cfg
|
||||||
|
echo "--gcc-triple=%{_target_cpu}-redhat-linux" >> %{buildroot}%{_sysconfdir}/%{pkg_name_clang}/%{_target_platform}-clang++.cfg
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in a new issue