!10 Update to 17.0.6

From: @zj94 
Reviewed-by: @liyunfei33, @cf-zhao 
Signed-off-by: @cf-zhao
This commit is contained in:
openeuler-ci-bot 2024-01-04 07:57:19 +00:00 committed by Gitee
commit 0143bceffa
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
6 changed files with 19 additions and 28 deletions

View File

@ -1,22 +1,8 @@
# lld-15
# lld
#### Description
LLVM Linker
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
This package contains library and header files needed to develop new native
programs that use the LLD infrastructure.
#### Contribution

Binary file not shown.

Binary file not shown.

BIN
lld-17.0.6.src.tar.xz Normal file

Binary file not shown.

View File

@ -1,18 +1,18 @@
%bcond_with sys_llvm
%bcond_with check
%bcond_without sys_llvm
%bcond_without check
%global maj_ver 12
%global maj_ver 17
%global min_ver 0
%global patch_ver 1
%global patch_ver 6
%if %{with sys_llvm}
%global pkg_name lld
%global bin_suffix %{nil}
%global install_prefix %{_prefix}
%global install_datadir %{_datadir}
%else
%global pkg_name lld%{maj_ver}
%global bin_suffix -%{maj_ver}
%global install_prefix %{_libdir}/llvm%{maj_ver}
%global install_datadir %{install_prefix}/share
%endif
%global install_bindir %{install_prefix}/bin
@ -47,10 +47,12 @@ BuildRequires: cmake
BuildRequires: llvm-devel = %{version}
BuildRequires: llvm-googletest = %{version}
BuildRequires: llvm-test = %{version}
BuildRequires: llvm-cmake-utils = %{version}
%else
BuildRequires: llvm%{maj_ver}-devel = %{version}
BuildRequires: llvm%{maj_ver}-googletest = %{version}
BuildRequires: llvm%{maj_ver}-test = %{version}
BuildRequires: llvm%{maj_ver}-cmake-utils = %{version}
%endif
BuildRequires: ncurses-devel
BuildRequires: ninja-build
@ -97,6 +99,7 @@ cd _build
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
-DLLVM_LIT_ARGS="-sv \
--path %{install_prefix}" \
-DLLVM_COMMON_CMAKE_UTILS=%{install_datadir}/llvm/cmake \
-DLLVM_MAIN_SRC_DIR=%{install_prefix}/src
%ninja_build
@ -108,8 +111,7 @@ rm %{buildroot}%{install_includedir}/mach-o/compact_unwind_encoding.h
%check
%if %{with check}
cd _build
%ninja_build check-lld
%ninja_build check-lld -C _build
%endif
%files
@ -125,5 +127,8 @@ cd _build
%{install_libdir}/liblld*.so.*
%changelog
* Fri Dec 1 2023 zhoujing <zhoujing106@huawei.com> - 17.0.6-1
- Update to 17.0.6
* Thu May 25 2023 cf-zhao <zhaochuanfeng@huawei.com> - 12.0.1-1
- Package init