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
|
#### Description
|
||||||
The llvm compiler support routines
|
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
|
#### Contribution
|
||||||
|
|
||||||
1. Fork the repository
|
1. Fork the repository
|
||||||
|
|||||||
18
README.md
18
README.md
@ -1,8 +1,24 @@
|
|||||||
# compiler-rt
|
# compiler-rt-latest
|
||||||
|
|
||||||
#### 介绍
|
#### 介绍
|
||||||
The llvm compiler support routines
|
The llvm compiler support routines
|
||||||
|
|
||||||
|
#### 软件架构
|
||||||
|
软件架构说明
|
||||||
|
|
||||||
|
|
||||||
|
#### 安装教程
|
||||||
|
|
||||||
|
1. xxxx
|
||||||
|
2. xxxx
|
||||||
|
3. xxxx
|
||||||
|
|
||||||
|
#### 使用说明
|
||||||
|
|
||||||
|
1. xxxx
|
||||||
|
2. xxxx
|
||||||
|
3. xxxx
|
||||||
|
|
||||||
#### 参与贡献
|
#### 参与贡献
|
||||||
|
|
||||||
1. Fork 本仓库
|
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 check
|
||||||
|
%bcond_without toolchain_clang
|
||||||
|
|
||||||
%global maj_ver 17
|
%if %{with toolchain_clang}
|
||||||
%global min_ver 0
|
%global toolchain clang
|
||||||
%global patch_ver 6
|
%endif
|
||||||
|
|
||||||
|
%global maj_ver 18
|
||||||
|
%global min_ver 1
|
||||||
|
%global patch_ver 8
|
||||||
%global crt_version %{maj_ver}.%{min_ver}.%{patch_ver}
|
%global crt_version %{maj_ver}.%{min_ver}.%{patch_ver}
|
||||||
%global crt_srcdir compiler-rt-%{version}%{?rc_ver:rc%{rc_ver}}.src
|
%global crt_srcdir compiler-rt-%{version}%{?rc_ver:rc%{rc_ver}}.src
|
||||||
%global optflags %(echo %{optflags} -D_DEFAULT_SOURCE)
|
%global optflags %(echo %{optflags} -D_DEFAULT_SOURCE)
|
||||||
%global optflags %(echo %{optflags} -Dasm=__asm__)
|
%global optflags %(echo %{optflags} -Dasm=__asm__)
|
||||||
|
|
||||||
%if %{with sys_llvm}
|
%global _scl_prefix /opt/openEuler
|
||||||
%global pkg_name compiler-rt
|
%{?scl:%scl_package %scl}
|
||||||
%global install_prefix %{_prefix}
|
%{!?scl:%global scl_prefix llvm-toolset-%{maj_ver}-}
|
||||||
%global install_datadir %{_datadir}
|
%{!?scl:%global pkg_name %{name}}
|
||||||
%else
|
%global install_prefix %{!?scl:%{_scl_prefix}/llvm-toolset-%{maj_ver}/root}%{_prefix}
|
||||||
%global pkg_name compiler-rt%{maj_ver}
|
%global install_datadir %{!?scl:%{_scl_prefix}/llvm-toolset-%{maj_ver}/root}%{_datadir}
|
||||||
%global install_prefix %{_libdir}/llvm%{maj_ver}
|
|
||||||
%global install_datadir %{install_prefix}/share
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?__isa_bits} == 64
|
%if 0%{?__isa_bits} == 64
|
||||||
%global install_libdir %{install_prefix}/lib64
|
%global install_libdir %{install_prefix}/lib64
|
||||||
@ -25,9 +26,9 @@
|
|||||||
%global install_libdir %{install_prefix}/lib
|
%global install_libdir %{install_prefix}/lib
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: %{pkg_name}
|
Name: %{?scl_prefix}compiler-rt
|
||||||
Version: %{crt_version}
|
Version: %{crt_version}
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: LLVM "compiler-rt" runtime libraries
|
Summary: LLVM "compiler-rt" runtime libraries
|
||||||
|
|
||||||
License: NCSA or MIT
|
License: NCSA or MIT
|
||||||
@ -42,17 +43,14 @@ BuildRequires: ninja-build
|
|||||||
BuildRequires: python3
|
BuildRequires: python3
|
||||||
# We need python3-devel for pathfix.py.
|
# We need python3-devel for pathfix.py.
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
%if %{with toolchain_clang}
|
||||||
%if %{with sys_llvm}
|
BuildRequires: clang
|
||||||
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}
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
BuildRequires: %{?scl_prefix}llvm-devel = %{version}
|
||||||
|
BuildRequires: %{?scl_prefix}llvm-test = %{version}
|
||||||
|
BuildRequires: %{?scl_prefix}llvm-cmake-utils = %{version}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The compiler-rt project is a part of the LLVM project. It provides
|
The compiler-rt project is a part of the LLVM project. It provides
|
||||||
implementation of the low-level target-specific hooks required by
|
implementation of the low-level target-specific hooks required by
|
||||||
@ -72,6 +70,9 @@ export ASMFLAGS=$CFLAGS
|
|||||||
mkdir -p _build
|
mkdir -p _build
|
||||||
cd _build
|
cd _build
|
||||||
%cmake .. \
|
%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_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_MODULE_PATH=%{install_libdir}/cmake/llvm \
|
-DCMAKE_MODULE_PATH=%{install_libdir}/cmake/llvm \
|
||||||
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
||||||
@ -81,6 +82,10 @@ cd _build
|
|||||||
-DLLVM_LIBDIR_SUFFIX=64 \
|
-DLLVM_LIBDIR_SUFFIX=64 \
|
||||||
%else
|
%else
|
||||||
-DLLVM_LIBDIR_SUFFIX= \
|
-DLLVM_LIBDIR_SUFFIX= \
|
||||||
|
%endif
|
||||||
|
%if "%{toolchain}" == "clang"
|
||||||
|
-DCMAKE_C_COMPILER=clang \
|
||||||
|
-DCMAKE_CXX_COMPILER=clang++ \
|
||||||
%endif
|
%endif
|
||||||
-DCOMPILER_RT_INCLUDE_TESTS:BOOL=OFF # could be on?
|
-DCOMPILER_RT_INCLUDE_TESTS:BOOL=OFF # could be on?
|
||||||
|
|
||||||
@ -107,6 +112,21 @@ cd _build
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Feb 23 2024 jchzhou <zhoujiacheng@iscas.ac.cn> - 17.0.6-2
|
||||||
- Fix an unpackaged file issue on riscv64
|
- Fix an unpackaged file issue on riscv64
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user