Skip to content

Commit 438bae3

Browse files
committed
Adapt to removal of BitcodeSuffix in libomptarget...
This should fix: ``` RPM build errors: absolute symlink: /usr/bin/clang-format-diff -> /usr/share/clang/clang-format-diff.py File not found: /builddir/build/BUILD/llvm-20.0.0_pre20241225.g34f8573a514915-build/BUILDROOT/usr/lib64/libomptarget-amdgpu-*.bc File not found: /builddir/build/BUILD/llvm-20.0.0_pre20241225.g34f8573a514915-build/BUILDROOT/usr/lib64/libomptarget-nvptx-*.bc ``` See llvm/llvm-project@34f8573#diff-c89ebf1fc950679f63c19739a35aa966a12674f7d61af6fb382ab1fa0ee21dd7L2842
1 parent 6efb982 commit 438bae3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm.spec

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2726,8 +2726,13 @@ fi
27262726
# libomptarget is not supported on 32-bit systems.
27272727
# s390x does not support the offloading plugins.
27282728
%{install_libdir}/libomptarget.devicertl.a
2729+
%if %{maj_ver} >= 20
2730+
%{install_libdir}/libomptarget-amdgpu*.bc
2731+
%{install_libdir}/libomptarget-nvptx*.bc
2732+
%else
27292733
%{install_libdir}/libomptarget-amdgpu-*.bc
27302734
%{install_libdir}/libomptarget-nvptx-*.bc
2735+
%endif
27312736
%{install_libdir}/libomptarget.so
27322737
%if %{maj_ver} >= 20
27332738
%{install_libdir}/libLLVMOffload.so

0 commit comments

Comments
 (0)