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
|
#### Description
|
||||||
LLVM Linker
|
This package contains library and header files needed to develop new native
|
||||||
|
programs that use the LLD infrastructure.
|
||||||
#### Software Architecture
|
|
||||||
Software architecture description
|
|
||||||
|
|
||||||
#### Installation
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Instructions
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Contribution
|
#### 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_without sys_llvm
|
||||||
%bcond_with check
|
%bcond_without check
|
||||||
|
|
||||||
%global maj_ver 12
|
%global maj_ver 17
|
||||||
%global min_ver 0
|
%global min_ver 0
|
||||||
%global patch_ver 1
|
%global patch_ver 6
|
||||||
|
|
||||||
%if %{with sys_llvm}
|
%if %{with sys_llvm}
|
||||||
%global pkg_name lld
|
%global pkg_name lld
|
||||||
%global bin_suffix %{nil}
|
|
||||||
%global install_prefix %{_prefix}
|
%global install_prefix %{_prefix}
|
||||||
|
%global install_datadir %{_datadir}
|
||||||
%else
|
%else
|
||||||
%global pkg_name lld%{maj_ver}
|
%global pkg_name lld%{maj_ver}
|
||||||
%global bin_suffix -%{maj_ver}
|
|
||||||
%global install_prefix %{_libdir}/llvm%{maj_ver}
|
%global install_prefix %{_libdir}/llvm%{maj_ver}
|
||||||
|
%global install_datadir %{install_prefix}/share
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global install_bindir %{install_prefix}/bin
|
%global install_bindir %{install_prefix}/bin
|
||||||
@ -47,10 +47,12 @@ BuildRequires: cmake
|
|||||||
BuildRequires: llvm-devel = %{version}
|
BuildRequires: llvm-devel = %{version}
|
||||||
BuildRequires: llvm-googletest = %{version}
|
BuildRequires: llvm-googletest = %{version}
|
||||||
BuildRequires: llvm-test = %{version}
|
BuildRequires: llvm-test = %{version}
|
||||||
|
BuildRequires: llvm-cmake-utils = %{version}
|
||||||
%else
|
%else
|
||||||
BuildRequires: llvm%{maj_ver}-devel = %{version}
|
BuildRequires: llvm%{maj_ver}-devel = %{version}
|
||||||
BuildRequires: llvm%{maj_ver}-googletest = %{version}
|
BuildRequires: llvm%{maj_ver}-googletest = %{version}
|
||||||
BuildRequires: llvm%{maj_ver}-test = %{version}
|
BuildRequires: llvm%{maj_ver}-test = %{version}
|
||||||
|
BuildRequires: llvm%{maj_ver}-cmake-utils = %{version}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: ninja-build
|
BuildRequires: ninja-build
|
||||||
@ -97,6 +99,7 @@ cd _build
|
|||||||
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
|
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
|
||||||
-DLLVM_LIT_ARGS="-sv \
|
-DLLVM_LIT_ARGS="-sv \
|
||||||
--path %{install_prefix}" \
|
--path %{install_prefix}" \
|
||||||
|
-DLLVM_COMMON_CMAKE_UTILS=%{install_datadir}/llvm/cmake \
|
||||||
-DLLVM_MAIN_SRC_DIR=%{install_prefix}/src
|
-DLLVM_MAIN_SRC_DIR=%{install_prefix}/src
|
||||||
|
|
||||||
%ninja_build
|
%ninja_build
|
||||||
@ -108,8 +111,7 @@ rm %{buildroot}%{install_includedir}/mach-o/compact_unwind_encoding.h
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with check}
|
%if %{with check}
|
||||||
cd _build
|
%ninja_build check-lld -C _build
|
||||||
%ninja_build check-lld
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -125,5 +127,8 @@ cd _build
|
|||||||
%{install_libdir}/liblld*.so.*
|
%{install_libdir}/liblld*.so.*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu May 25 2023 cf-zhao <zhaochuanfeng@huawei.com> - 12.0.1-1
|
||||||
- Package init
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user