Update to LLVM 17.0.6
1.Use llvm-cmake-utils package
This commit is contained in:
parent
c95df9cfbd
commit
84aff0d930
20
README.en.md
20
README.en.md
@ -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
BIN
lld-17.0.6.src.tar.xz
Normal file
Binary file not shown.
21
lld.spec
21
lld.spec
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user