diff --git a/openmp.spec b/openmp.spec index c48e70dbd3f77efd163b21e476ac49bc12cff9b4..e8667318748a4cf31038b94948f4819f7c091301 100644 --- a/openmp.spec +++ b/openmp.spec @@ -1,5 +1,10 @@ %bcond_without sys_llvm %bcond_with check +%bcond_without toolchain_clang + +%if %{with toolchain_clang} +%global toolchain clang +%endif %global toolchain clang @@ -32,7 +37,7 @@ Name: %{pkg_name} Version: %{openmp_version} -Release: 1 +Release: 2 Summary: OpenMP runtime for clang License: Apache License 2.0 @@ -93,6 +98,10 @@ OpenMP header files. -DOPENMP_LIBDIR_SUFFIX=64 \ %else -DOPENMP_LIBDIR_SUFFIX= \ +%endif +%if "%{toolchain}" == "clang" + -DCMAKE_C_COMPILER=clang \ + -DCMAKE_CXX_COMPILER=clang++ \ %endif -DCMAKE_SKIP_RPATH:BOOL=ON @@ -139,6 +148,9 @@ rm -rf %{buildroot}%{install_libdir}/libarcher_static.a %{install_libdir}/libomptarget.so %changelog +* Fri Jul 5 2024 liyunfei - 17.0.6-2 +- Add toolchain_clang build support + * Mon Dec 4 2023 zhoujing - 17.0.6-1 - Update to 17.0.6