From 0f6cc6f70812060a9d16a2148042e2ec9f38f79c Mon Sep 17 00:00:00 2001 From: licihua Date: Thu, 29 Apr 2021 17:21:36 +0800 Subject: [PATCH] reduce debug info (cherry picked from commit e03513aa74cf7a88dd31ee38980a1071d0a535f7) --- clang.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/clang.spec b/clang.spec index 95d1290..4e94215 100644 --- a/clang.spec +++ b/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 - 10.0.1-3 +- Reduce debuginfo verbosity. + * Tue Feb 02 2021 sunguoshuai - 10.0.1-2 - Delete low version dynamic library. -- Gitee