Compare commits
10 Commits
ca26737545
...
75d99f1877
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
75d99f1877 | ||
|
|
e3af9c5ecd | ||
|
|
f475264626 | ||
|
|
45a2a8260a | ||
|
|
4df5fd4a94 | ||
|
|
6d2ccd76cb | ||
|
|
d76aefd3b9 | ||
|
|
6d7a89693d | ||
|
|
a88da04bc8 | ||
|
|
fda117eb6f |
27
clang.spec
27
clang.spec
@ -6,7 +6,7 @@
|
||||
|
||||
Name: clang
|
||||
Version: 10.0.1
|
||||
Release: 1
|
||||
Release: 6
|
||||
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,15 @@ mv ../%{clang_tools_srcdir} tools/extra
|
||||
mkdir -p _build
|
||||
cd _build
|
||||
|
||||
%ifarch %{arm}
|
||||
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
||||
%endif
|
||||
|
||||
%cmake .. \
|
||||
-DCLANG_LINK_CLANG_DYLIB=ON \
|
||||
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
|
||||
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
|
||||
-DLLVM_CONFIG:FILEPATH=/usr/bin/llvm-config-%{__isa_bits} \
|
||||
-DCLANG_INCLUDE_TESTS:BOOL=ON \
|
||||
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
|
||||
@ -153,8 +154,6 @@ rm -Rvf %{buildroot}%{_pkgdocdir}
|
||||
rm -vf %{buildroot}%{_datadir}/clang/bash-autocomplete.sh
|
||||
|
||||
ln -s clang++ %{buildroot}%{_bindir}/clang++-%{maj_ver}
|
||||
cp -p %{_libdir}/libclang*so.7 %{buildroot}%{_libdir}
|
||||
cp -p %{_libdir}/libfindAllSymbols.so.7 %{buildroot}%{_libdir}
|
||||
|
||||
%check
|
||||
# Checking is disabled because we don't pack libLLVMTestingSupport.a, which makes
|
||||
@ -196,6 +195,7 @@ cp -p %{_libdir}/libfindAllSymbols.so.7 %{buildroot}%{_libdir}
|
||||
|
||||
%files devel
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/*.a
|
||||
%{_includedir}/clang/
|
||||
%{_includedir}/clang-c/
|
||||
%{_libdir}/cmake/*
|
||||
@ -240,6 +240,21 @@ cp -p %{_libdir}/libfindAllSymbols.so.7 %{buildroot}%{_libdir}
|
||||
%{_bindir}/git-clang-format
|
||||
|
||||
%changelog
|
||||
* Sun Oct 08 2023 wangkai <13474090681@163.com> - 10.0.1-6
|
||||
- Recover deleted .a files to fix lldb build errors
|
||||
|
||||
* Tue Jun 13 2023 wangqiang <wangqiang1@kylinos.cn> - 10.0.1-5
|
||||
- Add compile option -DCLANG_LINK_CLANG_DYLIB=ON, -DBUILD_SHARED_LIBS=OFF
|
||||
|
||||
* Fri Apr 30 2021 licihua <licihua@huawei.com> - 10.0.1-4
|
||||
- Reduce build time
|
||||
|
||||
* 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.
|
||||
|
||||
* Mon Nov 09 2020 huanghaitao <huanghaitao8@huawei.com> - 10.0.1-1
|
||||
- Make help package required by clang and delete python2
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user