Fix RPM snapshot build for i386 and aarch64

by moving some *.bc files into a section where they are excluded from
these architectures.

RPM build errors:
    File not found: /builddir/build/BUILDROOT/libomp-14.0.0~pre20220103.g65035e0d06762a-1.fc34.i386/usr/lib/libomptarget-new-amdgpu-gfx*.bc
    File not found: /builddir/build/BUILDROOT/libomp-14.0.0~pre20220103.g65035e0d06762a-1.fc34.i386/usr/lib/libomptarget-new-nvptx-sm_*.bc
This commit is contained in:
Konrad Kleine 2022-01-03 13:12:51 +01:00
parent c54e6b982d
commit bf9ceea26d

View file

@ -152,13 +152,13 @@ rm -rf %{buildroot}%{_libdir}/libarcher_static.a
%{_libdir}/libomp.so
%if %{with snapshot_build}
%{_libdir}/libompd.so
%{_libdir}/libomptarget-new-amdgpu-gfx*.bc
%{_libdir}/libomptarget-new-nvptx-sm_*.bc
%endif
%ifnarch %{arm}
%{_libdir}/libarcher.so
%endif
%ifnarch %{ix86} %{arm}
%{_libdir}/libomptarget-new-amdgpu-gfx*.bc
%{_libdir}/libomptarget-new-nvptx-sm_*.bc
%{_libdir}/libomptarget-amdgcn*.bc
%{_libdir}/libomptarget.rtl.amdgpu.so
%{_libdir}/libomptarget.rtl.cuda.so