fix build error for loongarch64

(cherry picked from commit da435d2efd40809128058f3cb72036f2e69f1829)
This commit is contained in:
Wenlong Zhang 2024-06-05 02:28:20 +00:00 committed by openeuler-sync-bot
parent 0e38c565cb
commit fa145039a8

View File

@ -32,7 +32,7 @@
Name: %{pkg_name}
Version: %{openmp_version}
Release: 1
Release: 2
Summary: OpenMP runtime for clang
License: Apache License 2.0
@ -111,7 +111,7 @@ rm -rf %{buildroot}%{install_libdir}/libarcher_static.a
%ifnarch %{arm}
%{install_libdir}/libarcher.so
%endif
%ifnarch %{ix86} %{arm} riscv64
%ifnarch %{ix86} %{arm} riscv64 loongarch64
%{install_libdir}/libomptarget.rtl.amdgpu.so.%{maj_ver}
%{install_libdir}/libomptarget.rtl.cuda.so.%{maj_ver}
%{install_libdir}/libomptarget.rtl.%{libomp_arch}.so.%{maj_ver}
@ -127,7 +127,7 @@ rm -rf %{buildroot}%{install_libdir}/libarcher_static.a
%{install_libdir}/clang/%{maj_ver}/include/ompt-multiplex.h
%endif
%ifnarch %{ix86} %{arm}
%ifnarch riscv64
%ifnarch riscv64 loongarch64
%{install_libdir}/libomptarget.rtl.amdgpu.so
%{install_libdir}/libomptarget.rtl.cuda.so
%{install_libdir}/libomptarget.rtl.%{libomp_arch}.so
@ -139,6 +139,9 @@ rm -rf %{buildroot}%{install_libdir}/libarcher_static.a
%{install_libdir}/libomptarget.so
%changelog
* Wed Jun 05 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 17.0.6-2
- fix build error for loongarch64
* Mon Dec 4 2023 zhoujing <zhoujing106@huawei.com> - 17.0.6-1
- Update to 17.0.6