Compare commits
10 Commits
24f7ad952e
...
8ea4503738
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8ea4503738 | ||
|
|
5010db079b | ||
|
|
cb36bb3dcb | ||
|
|
fd96eff9a0 | ||
|
|
5c82d3f812 | ||
|
|
65b11eefee | ||
|
|
b57343ea35 | ||
|
|
ba9b809203 | ||
|
|
91b1c48267 | ||
|
|
be2374c95c |
25
clang.spec
25
clang.spec
@ -6,7 +6,7 @@
|
||||
|
||||
Name: clang
|
||||
Version: 12.0.1
|
||||
Release: 1
|
||||
Release: 6
|
||||
License: GPL-2.0-only and Apache-2.0 and MIT
|
||||
Summary: An "LLVM native" C/C++/Objective-C compiler
|
||||
URL: http://llvm.org
|
||||
@ -15,6 +15,7 @@ Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{versio
|
||||
Source2: clang-config.h
|
||||
|
||||
BuildRequires: cmake gcc-c++ python-sphinx git
|
||||
BuildRequires: llvm-libs = %{version}
|
||||
BuildRequires: llvm-devel = %{version}
|
||||
BuildRequires: llvm-static = %{version}
|
||||
BuildRequires: llvm-googletest = %{version}
|
||||
@ -112,9 +113,11 @@ cd _build
|
||||
|
||||
|
||||
%cmake .. \
|
||||
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
||||
-DCLANG_LINK_CLANG_DYLIB=ON \
|
||||
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_INSTALL_RPATH:BOOL=";" \
|
||||
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
||||
-DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
|
||||
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \
|
||||
-DLLVM_CONFIG:FILEPATH=/usr/bin/llvm-config-%{__isa_bits} \
|
||||
@ -216,6 +219,7 @@ ln -s clang++ %{buildroot}%{_bindir}/clang++-%{maj_ver}
|
||||
|
||||
%files devel
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/*.a
|
||||
%{_includedir}/clang/
|
||||
%{_includedir}/clang-c/
|
||||
%{_libdir}/cmake/*
|
||||
@ -266,6 +270,21 @@ ln -s clang++ %{buildroot}%{_bindir}/clang++-%{maj_ver}
|
||||
%{_bindir}/git-clang-format
|
||||
|
||||
%changelog
|
||||
* Wed May 22 2024 liyunfei <liyufnei33@huawei.com> -12.0.1-6
|
||||
- Fix the x86_64 rpath issue
|
||||
|
||||
* Thu Jan 25 2024 liyunfei <liyufnei33@huawei.com> -12.0.1-5
|
||||
- Add requires: llvm
|
||||
|
||||
* Sun Oct 08 2023 wangkai <13474090681@163.com> - 12.0.1-4
|
||||
- Recover deleted .a files to fix lldb build errors
|
||||
|
||||
* Tue Jun 13 2023 wangqiang <wangqiang1@kylinos.cn> - 12.0.1-3
|
||||
- Add compile option -DCLANG_LINK_CLANG_DYLIB=ON, -DBUILD_SHARED_LIBS=OFF
|
||||
|
||||
* Thu Oct 27 2022 dongyuzhen <dongyuzhen@h-partners.com> - 12.0.1-2
|
||||
- Rebuild for next release
|
||||
|
||||
* Wed Dec 29 2021 panxiaohe <panxiaohe@huawei.com> - 12.0.1-1
|
||||
- update to 12.0.1
|
||||
- add clang-resource-filesystem sub-package
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user