Compare commits
10 Commits
477390f07c
...
7b93211289
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7b93211289 | ||
|
|
1e740e5a93 | ||
|
|
4a98a07ccf | ||
|
|
8c9ff35cad | ||
|
|
9610c53997 | ||
|
|
6aa107f094 | ||
|
|
3a34d3806b | ||
|
|
844c7f9f7e | ||
|
|
039493bc97 | ||
|
|
c39a3c6738 |
17
README.en.md
17
README.en.md
@ -1,8 +1,23 @@
|
||||
# compiler-rt
|
||||
# compiler-rt-latest
|
||||
|
||||
#### Description
|
||||
The llvm compiler support routines
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
|
||||
18
README.md
18
README.md
@ -1,8 +1,24 @@
|
||||
# compiler-rt
|
||||
# compiler-rt-latest
|
||||
|
||||
#### 介绍
|
||||
The llvm compiler support routines
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
|
||||
Binary file not shown.
Binary file not shown.
BIN
compiler-rt-18.1.8.src.tar.xz
Normal file
BIN
compiler-rt-18.1.8.src.tar.xz
Normal file
Binary file not shown.
BIN
compiler-rt-18.1.8.src.tar.xz.sig
Normal file
BIN
compiler-rt-18.1.8.src.tar.xz.sig
Normal file
Binary file not shown.
@ -1,23 +1,24 @@
|
||||
%bcond_without sys_llvm
|
||||
%bcond_without check
|
||||
%bcond_without toolchain_clang
|
||||
|
||||
%global maj_ver 17
|
||||
%global min_ver 0
|
||||
%global patch_ver 6
|
||||
%if %{with toolchain_clang}
|
||||
%global toolchain clang
|
||||
%endif
|
||||
|
||||
%global maj_ver 18
|
||||
%global min_ver 1
|
||||
%global patch_ver 8
|
||||
%global crt_version %{maj_ver}.%{min_ver}.%{patch_ver}
|
||||
%global crt_srcdir compiler-rt-%{version}%{?rc_ver:rc%{rc_ver}}.src
|
||||
%global optflags %(echo %{optflags} -D_DEFAULT_SOURCE)
|
||||
%global optflags %(echo %{optflags} -Dasm=__asm__)
|
||||
|
||||
%if %{with sys_llvm}
|
||||
%global pkg_name compiler-rt
|
||||
%global install_prefix %{_prefix}
|
||||
%global install_datadir %{_datadir}
|
||||
%else
|
||||
%global pkg_name compiler-rt%{maj_ver}
|
||||
%global install_prefix %{_libdir}/llvm%{maj_ver}
|
||||
%global install_datadir %{install_prefix}/share
|
||||
%endif
|
||||
%global _scl_prefix /opt/openEuler
|
||||
%{?scl:%scl_package %scl}
|
||||
%{!?scl:%global scl_prefix llvm-toolset-%{maj_ver}-}
|
||||
%{!?scl:%global pkg_name %{name}}
|
||||
%global install_prefix %{!?scl:%{_scl_prefix}/llvm-toolset-%{maj_ver}/root}%{_prefix}
|
||||
%global install_datadir %{!?scl:%{_scl_prefix}/llvm-toolset-%{maj_ver}/root}%{_datadir}
|
||||
|
||||
%if 0%{?__isa_bits} == 64
|
||||
%global install_libdir %{install_prefix}/lib64
|
||||
@ -25,9 +26,9 @@
|
||||
%global install_libdir %{install_prefix}/lib
|
||||
%endif
|
||||
|
||||
Name: %{pkg_name}
|
||||
Name: %{?scl_prefix}compiler-rt
|
||||
Version: %{crt_version}
|
||||
Release: 2
|
||||
Release: 1
|
||||
Summary: LLVM "compiler-rt" runtime libraries
|
||||
|
||||
License: NCSA or MIT
|
||||
@ -42,17 +43,14 @@ BuildRequires: ninja-build
|
||||
BuildRequires: python3
|
||||
# We need python3-devel for pathfix.py.
|
||||
BuildRequires: python3-devel
|
||||
|
||||
%if %{with sys_llvm}
|
||||
BuildRequires: llvm-devel = %{version}
|
||||
BuildRequires: llvm-test = %{version}
|
||||
BuildRequires: llvm-cmake-utils = %{version}
|
||||
%else
|
||||
BuildRequires: llvm%{maj_ver}-devel = %{version}
|
||||
BuildRequires: llvm%{maj_ver}-test = %{version}
|
||||
BuildRequires: llvm%{maj_ver}-cmake-utils = %{version}
|
||||
%if %{with toolchain_clang}
|
||||
BuildRequires: clang
|
||||
%endif
|
||||
|
||||
BuildRequires: %{?scl_prefix}llvm-devel = %{version}
|
||||
BuildRequires: %{?scl_prefix}llvm-test = %{version}
|
||||
BuildRequires: %{?scl_prefix}llvm-cmake-utils = %{version}
|
||||
|
||||
%description
|
||||
The compiler-rt project is a part of the LLVM project. It provides
|
||||
implementation of the low-level target-specific hooks required by
|
||||
@ -72,6 +70,9 @@ export ASMFLAGS=$CFLAGS
|
||||
mkdir -p _build
|
||||
cd _build
|
||||
%cmake .. \
|
||||
-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
|
||||
-DLLVM_COMMON_CMAKE_UTILS=%{install_datadir}/llvm/cmake \
|
||||
-DLLVM_MAIN_SRC_DIR=%{install_prefix}/src \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_MODULE_PATH=%{install_libdir}/cmake/llvm \
|
||||
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
||||
@ -81,6 +82,10 @@ cd _build
|
||||
-DLLVM_LIBDIR_SUFFIX=64 \
|
||||
%else
|
||||
-DLLVM_LIBDIR_SUFFIX= \
|
||||
%endif
|
||||
%if "%{toolchain}" == "clang"
|
||||
-DCMAKE_C_COMPILER=clang \
|
||||
-DCMAKE_CXX_COMPILER=clang++ \
|
||||
%endif
|
||||
-DCOMPILER_RT_INCLUDE_TESTS:BOOL=OFF # could be on?
|
||||
|
||||
@ -107,6 +112,21 @@ cd _build
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Dec 6 2024 liyunfei <liyunfei33@huawei.com> - 18.1.8-1
|
||||
- init for Multi-Version LLVM-18.1.8
|
||||
|
||||
* Thu Nov 14 2024 Funda Wang <fundawang@yeah.net> - 17.0.6-6
|
||||
- adopt to new cmake macro
|
||||
|
||||
* Tue Aug 20 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-5
|
||||
- Add BiSheng Autotuner support.
|
||||
|
||||
* Fri Jul 5 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-4
|
||||
- Add toolchain_clang build support
|
||||
|
||||
* Wed Apr 03 2024 zhanglimin <zhanglimin@loongson.cn> - 17.0.6-3
|
||||
- Improve the support for compiler-rt on LoongArch
|
||||
|
||||
* Fri Feb 23 2024 jchzhou <zhoujiacheng@iscas.ac.cn> - 17.0.6-2
|
||||
- Fix an unpackaged file issue on riscv64
|
||||
|
||||
@ -129,4 +149,4 @@ cd _build
|
||||
- Update to 10.0.1
|
||||
|
||||
* Thu Dec 5 2019 openEuler Buildteam <buildteam@openeuler.org> - 7.0.0-2
|
||||
- Package init
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user