Update config

This commit is contained in:
eabdullin 2025-04-24 10:29:02 +03:00
parent 19cdfac5b3
commit b65a5e960e

View File

@ -2,10 +2,8 @@ actions:
- replace: - replace:
- target: "spec" - target: "spec"
find: | find: |
%if %{maj_ver} >=18
%global cfg_file_content --gcc-triple=%{_target_cpu}-redhat-linux %global cfg_file_content --gcc-triple=%{_target_cpu}-redhat-linux
replace: | replace: |
%if %{maj_ver} >=18
%ifarch x86_64_v2 %ifarch x86_64_v2
%global cfg_file_content --gcc-triple=x86_64-redhat-linux %global cfg_file_content --gcc-triple=x86_64-redhat-linux
%else %else
@ -43,20 +41,14 @@ actions:
#region llvm options #region llvm options
count: 1 count: 1
- target: "spec"
find: "-DLLVM_ENABLE_RUNTIMES=\"compiler-rt;openmp;offload\""
replace: "-DLLVM_ENABLE_RUNTIMES=\"%{runtimes}\""
count: 1
- target: "spec" - target: "spec"
find: | find: |
%ifnarch %{ix86} %ifnarch %{ix86}
# Remove files that we don't package, yet. # Remove files that we don't package, yet.
%if %{maj_ver} >= 20
rm %{buildroot}%{install_bindir}/llvm-offload-device-info rm %{buildroot}%{install_bindir}/llvm-offload-device-info
replace: | replace: |
%ifnarch %{ix86} riscv64 %ifnarch %{ix86} riscv64
# Remove files that we don't package, yet. # Remove files that we don't package, yet.
%if %{maj_ver} >= 20
rm %{buildroot}%{install_bindir}/llvm-offload-device-info rm %{buildroot}%{install_bindir}/llvm-offload-device-info
count: 1 count: 1
- target: "spec" - target: "spec"