Sync with openmp upstream-snapshot branch

This commit is contained in:
Tom Stellard 2024-03-16 20:09:57 +00:00 committed by Konrad Kleine
parent 3ac2fe8c45
commit 8fea7e788b
2 changed files with 5 additions and 2 deletions

View file

@ -45,6 +45,8 @@ cd llvm
# force off shared libs as cmake macros turns it on. # force off shared libs as cmake macros turns it on.
# TODO: Disable LLVM_UNREACHABLE_OPTIMIZE. # TODO: Disable LLVM_UNREACHABLE_OPTIMIZE.
# TODO: LIBOMP_HAVE_VERSION_SCRIPT_FLAG should be set automatically. # TODO: LIBOMP_HAVE_VERSION_SCRIPT_FLAG should be set automatically.
# TODO: Override LIBOMP_INSTALL_LIBDIR, because otherwise the libraries
# are installed to /usr/lib64/$TRIPLE and clang can't find them.
%cmake -G Ninja \ %cmake -G Ninja \
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" \ -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" \
\ \
@ -110,6 +112,7 @@ cd llvm
-DOPENMP_LIBDIR_SUFFIX= \ -DOPENMP_LIBDIR_SUFFIX= \
%endif %endif
%endif %endif
-DOPENMP_INSTALL_LIBDIR=%{_lib} \
\ \
\ \
\ \

View file

@ -119,10 +119,10 @@
%global pkg_name_libomp libomp %global pkg_name_libomp libomp
%global so_suffix %{maj_ver} %global so_suffix %{maj_ver}.%{min_ver}
%if %{with snapshot_build} %if %{with snapshot_build}
%global so_suffix %{maj_ver}%{llvm_snapshot_version_suffix} %global so_suffix %{maj_ver}.%{min_ver}%{llvm_snapshot_version_suffix}
%endif %endif
%ifarch ppc64le %ifarch ppc64le