!6 升级lld至15.0.7
From: @chenxi-mao Reviewed-by: @cf-zhao Signed-off-by: @cf-zhao
This commit is contained in:
commit
a4f9620581
Binary file not shown.
BIN
lld-15.0.7.src.tar.xz
Normal file
BIN
lld-15.0.7.src.tar.xz
Normal file
Binary file not shown.
31
lld.spec
31
lld.spec
@ -1,6 +1,8 @@
|
|||||||
|
%bcond_without check
|
||||||
|
|
||||||
%global maj_ver 15
|
%global maj_ver 15
|
||||||
%global min_ver 0
|
%global min_ver 0
|
||||||
%global patch_ver 6
|
%global patch_ver 7
|
||||||
|
|
||||||
%global pkg_name lld%{maj_ver}
|
%global pkg_name lld%{maj_ver}
|
||||||
%global bin_suffix -%{maj_ver}
|
%global bin_suffix -%{maj_ver}
|
||||||
@ -27,14 +29,14 @@ Patch1: fedora-PATCH-lld-Import-compact_unwind_encoding.h-from-libu.patch
|
|||||||
|
|
||||||
BuildRequires: clang
|
BuildRequires: clang
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: ninja-build
|
|
||||||
BuildRequires: llvm%{maj_ver}-devel = %{version}
|
BuildRequires: llvm%{maj_ver}-devel = %{version}
|
||||||
|
BuildRequires: llvm%{maj_ver}-googletest = %{version}
|
||||||
|
BuildRequires: llvm%{maj_ver}-test = %{version}
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: ninja-build
|
||||||
|
|
||||||
# For make check:
|
|
||||||
BuildRequires: python3-rpm-macros
|
BuildRequires: python3-rpm-macros
|
||||||
BuildRequires: python3-lit = %{version}
|
BuildRequires: python3-lit >= %{version}
|
||||||
|
BuildRequires: zlib-devel
|
||||||
|
|
||||||
Requires(post): %{_sbindir}/update-alternatives
|
Requires(post): %{_sbindir}/update-alternatives
|
||||||
Requires(preun): %{_sbindir}/update-alternatives
|
Requires(preun): %{_sbindir}/update-alternatives
|
||||||
@ -71,8 +73,11 @@ cd _build
|
|||||||
-DLLVM_DYLIB_COMPONENTS="all" \
|
-DLLVM_DYLIB_COMPONENTS="all" \
|
||||||
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
||||||
-DPYTHON_EXECUTABLE=%{__python3} \
|
-DPYTHON_EXECUTABLE=%{__python3} \
|
||||||
-DLLVM_INCLUDE_TESTS=OFF \
|
-DLLVM_INCLUDE_TESTS=ON \
|
||||||
-DLLVM_MAIN_SRC_DIR=%{_datadir}/llvm/src
|
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
|
||||||
|
-DLLVM_LIT_ARGS="-sv \
|
||||||
|
--path %{_libdir}/llvm%{maj_ver}" \
|
||||||
|
-DLLVM_MAIN_SRC_DIR=%{_libdir}/llvm%{maj_ver}/src
|
||||||
|
|
||||||
%ninja_build
|
%ninja_build
|
||||||
|
|
||||||
@ -89,6 +94,10 @@ for f in %{buildroot}/%{install_bindir}/*; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with check}
|
||||||
|
cd _build
|
||||||
|
%ninja_build check-lld
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE.TXT
|
%license LICENSE.TXT
|
||||||
@ -108,5 +117,11 @@ done
|
|||||||
%{install_libdir}/liblld*.so.*
|
%{install_libdir}/liblld*.so.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 20 2023 Chenxi Mao <chenxi.mao@suse.com> - 15.0.7-1
|
||||||
|
- Upgrade to 15.0.7.
|
||||||
|
|
||||||
|
* Thu Feb 9 2023 Chenxi Mao <chenxi.mao@suse.com> - 15.0.6-2
|
||||||
|
- Enable lld unit test.
|
||||||
|
|
||||||
* Mon Jan 2 2023 Chenxi Mao <chenxi.mao@suse.com> - 15.0.6-1
|
* Mon Jan 2 2023 Chenxi Mao <chenxi.mao@suse.com> - 15.0.6-1
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user