adopt to new cmake macro
This commit is contained in:
parent
ddc937a977
commit
3e2755936b
17
lld.spec
17
lld.spec
@ -1,3 +1,5 @@
|
|||||||
|
%undefine __cmake_in_source_build
|
||||||
|
|
||||||
%bcond_without sys_llvm
|
%bcond_without sys_llvm
|
||||||
%bcond_without check
|
%bcond_without check
|
||||||
%bcond_with toolchain_clang
|
%bcond_with toolchain_clang
|
||||||
@ -38,7 +40,7 @@
|
|||||||
|
|
||||||
Name: %{pkg_name}
|
Name: %{pkg_name}
|
||||||
Version: %{maj_ver}.%{min_ver}.%{patch_ver}
|
Version: %{maj_ver}.%{min_ver}.%{patch_ver}
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: The LLVM Linker
|
Summary: The LLVM Linker
|
||||||
|
|
||||||
License: NCSA
|
License: NCSA
|
||||||
@ -98,9 +100,7 @@ Shared libraries for LLD.
|
|||||||
%autosetup -n lld-%{version}.src -p2
|
%autosetup -n lld-%{version}.src -p2
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p _build
|
%cmake -G Ninja \
|
||||||
cd _build
|
|
||||||
%cmake .. -G Ninja \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
|
-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
|
||||||
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
||||||
@ -121,16 +121,16 @@ cd _build
|
|||||||
%endif
|
%endif
|
||||||
-DLLVM_MAIN_SRC_DIR=%{install_prefix}/src
|
-DLLVM_MAIN_SRC_DIR=%{install_prefix}/src
|
||||||
|
|
||||||
%ninja_build
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%ninja_install -C _build
|
%cmake_install
|
||||||
|
|
||||||
rm %{buildroot}%{install_includedir}/mach-o/compact_unwind_encoding.h
|
rm %{buildroot}%{install_includedir}/mach-o/compact_unwind_encoding.h
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with check}
|
%if %{with check}
|
||||||
%ninja_build check-lld -C _build
|
%ctest
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -146,6 +146,9 @@ rm %{buildroot}%{install_includedir}/mach-o/compact_unwind_encoding.h
|
|||||||
%{install_libdir}/liblld*.so.*
|
%{install_libdir}/liblld*.so.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 11 2024 Funda Wang <fundawang@yeah.net> - 17.0.6-7
|
||||||
|
- adopt to new cmake macro
|
||||||
|
|
||||||
* Mon Sep 23 2024 zhanglimin <zhanglimin@loongson.cn> - 17.0.6-6
|
* Mon Sep 23 2024 zhanglimin <zhanglimin@loongson.cn> - 17.0.6-6
|
||||||
- [LoongArch] Backport the support for call36 and extreme model relocs.
|
- [LoongArch] Backport the support for call36 and extreme model relocs.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user