Merge branch 'master' of gitee.com:src-openeuler/openmp into sync-pr10-openEuler-24.03-LTS-to-master

This commit is contained in:
liyunfei 2024-09-04 07:55:15 +00:00 committed by Gitee
commit 14b67e4725

View File

@ -1,5 +1,11 @@
%bcond_without sys_llvm
%bcond_with check
%bcond_without toolchain_clang
%bcond_without bisheng_autotuner
%if %{with toolchain_clang}
%global toolchain clang
%endif
%global toolchain clang
@ -32,7 +38,7 @@
Name: %{pkg_name}
Version: %{openmp_version}
Release: 2
Release: 4
Summary: OpenMP runtime for clang
License: Apache License 2.0
@ -93,6 +99,13 @@ OpenMP header files.
-DOPENMP_LIBDIR_SUFFIX=64 \
%else
-DOPENMP_LIBDIR_SUFFIX= \
%endif
%if "%{toolchain}" == "clang"
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
%endif
%if %{with bisheng_autotuner}
-DLLVM_ENABLE_AUTOTUNER=ON \
%endif
-DCMAKE_SKIP_RPATH:BOOL=ON
@ -139,6 +152,12 @@ rm -rf %{buildroot}%{install_libdir}/libarcher_static.a
%{install_libdir}/libomptarget.so
%changelog
* Tue Aug 20 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-4
- Add BiSheng Autotuner support.
* Fri Jul 5 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-3
- Add toolchain_clang build support
* Wed Jun 05 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 17.0.6-2
- fix build error for loongarch64