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