Make lld the default linker on arm
Making lld the default linker on arm due to rhbz#1918924.
This commit is contained in:
parent
a6f7984d83
commit
6699b0a7c6
13
clang.spec
13
clang.spec
@ -72,7 +72,7 @@
|
|||||||
|
|
||||||
Name: %pkg_name
|
Name: %pkg_name
|
||||||
Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}}
|
Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}}
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: A C language family front-end for LLVM
|
Summary: A C language family front-end for LLVM
|
||||||
|
|
||||||
License: NCSA
|
License: NCSA
|
||||||
@ -188,6 +188,11 @@ Recommends: compiler-rt%{?_isa} = %{version}
|
|||||||
Recommends: libomp-devel%{_isa} = %{version}
|
Recommends: libomp-devel%{_isa} = %{version}
|
||||||
Recommends: libomp%{_isa} = %{version}
|
Recommends: libomp%{_isa} = %{version}
|
||||||
|
|
||||||
|
# Use lld as the default linker on ARM due to rhbz#1918924
|
||||||
|
%ifarch %{arm}
|
||||||
|
Requires: lld
|
||||||
|
%endif
|
||||||
|
|
||||||
%description libs
|
%description libs
|
||||||
Runtime library for clang.
|
Runtime library for clang.
|
||||||
|
|
||||||
@ -364,6 +369,9 @@ sed -i 's/\@FEDORA_LLVM_LIB_SUFFIX\@//g' test/lit.cfg.py
|
|||||||
-DCLANG_BUILD_EXAMPLES:BOOL=OFF \
|
-DCLANG_BUILD_EXAMPLES:BOOL=OFF \
|
||||||
-DBUILD_SHARED_LIBS=OFF \
|
-DBUILD_SHARED_LIBS=OFF \
|
||||||
-DCLANG_REPOSITORY_STRING="%{?fedora:Fedora}%{?rhel:Red Hat} %{version}-%{release}" \
|
-DCLANG_REPOSITORY_STRING="%{?fedora:Fedora}%{?rhel:Red Hat} %{version}-%{release}" \
|
||||||
|
%ifarch %{arm}
|
||||||
|
-DCLANG_DEFAULT_LINKER=lld \
|
||||||
|
%endif
|
||||||
-DCLANG_DEFAULT_UNWINDLIB=libgcc
|
-DCLANG_DEFAULT_UNWINDLIB=libgcc
|
||||||
|
|
||||||
%cmake_build
|
%cmake_build
|
||||||
@ -562,6 +570,9 @@ false
|
|||||||
|
|
||||||
%endif
|
%endif
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 28 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-5
|
||||||
|
- Make lld the default linker on arm
|
||||||
|
|
||||||
* Wed Oct 27 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-4
|
* Wed Oct 27 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-4
|
||||||
- Remove Conflicts: compiler-rt for newer versions of compiler-rt
|
- Remove Conflicts: compiler-rt for newer versions of compiler-rt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user