reduce debug info
(cherry picked from commit e03513aa74cf7a88dd31ee38980a1071d0a535f7)
This commit is contained in:
parent
a88da04bc8
commit
6d7a89693d
10
clang.spec
10
clang.spec
@ -6,7 +6,7 @@
|
||||
|
||||
Name: clang
|
||||
Version: 10.0.1
|
||||
Release: 2
|
||||
Release: 3
|
||||
License: NCSA
|
||||
Summary: An "LLVM native" C/C++/Objective-C compiler
|
||||
URL: http://llvm.org
|
||||
@ -25,7 +25,6 @@ BuildRequires: llvm-static = %{version}
|
||||
BuildRequires: llvm-googletest = %{version}
|
||||
BuildRequires: libxml2-devel perl-generators ncurses-devel emacs libatomic
|
||||
BuildRequires: python3-lit python3-sphinx python3-devel
|
||||
BuildRequires: clang
|
||||
|
||||
Requires: libstdc++-devel gcc-c++ emacs-filesystem
|
||||
Recommends: %{name}-help = %{version}-%{release}
|
||||
@ -100,13 +99,13 @@ mv ../%{clang_tools_srcdir} tools/extra
|
||||
mkdir -p _build
|
||||
cd _build
|
||||
|
||||
%ifarch %{arm}
|
||||
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
||||
%endif
|
||||
|
||||
%cmake .. \
|
||||
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags}" \
|
||||
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags}" \
|
||||
-DLLVM_CONFIG:FILEPATH=/usr/bin/llvm-config-%{__isa_bits} \
|
||||
-DCLANG_INCLUDE_TESTS:BOOL=ON \
|
||||
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
|
||||
@ -238,6 +237,9 @@ ln -s clang++ %{buildroot}%{_bindir}/clang++-%{maj_ver}
|
||||
%{_bindir}/git-clang-format
|
||||
|
||||
%changelog
|
||||
* Thu Apr 29 2021 licihua <licihua@huawei.com> - 10.0.1-3
|
||||
- Reduce debuginfo verbosity.
|
||||
|
||||
* Tue Feb 02 2021 sunguoshuai <sunguoshuai@huawei.com> - 10.0.1-2
|
||||
- Delete low version dynamic library.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user