Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
7b93211289
!47 init for Multi-Version LLVM-18.1.8
From: @liyunfei33 
Reviewed-by: @eastb233 
Signed-off-by: @eastb233
2024-12-10 07:21:07 +00:00
liyunfei
1e740e5a93 init for Multi-Version LLVM-18.1.8
Signed-off-by: liyunfei <liyunfei33@huawei.com>
2024-12-09 10:48:09 +08:00
openeuler-ci-bot
4a98a07ccf
!46 adopt to new cmake macro
From: @fundawang 
Reviewed-by: @liyunfei33 
Signed-off-by: @liyunfei33
2024-11-18 02:17:58 +00:00
Funda Wang
8c9ff35cad adopt to new cmake macro 2024-11-14 12:31:12 +08:00
openeuler-ci-bot
9610c53997
!42 Add BiSheng Autotuner support
From: @liyunfei33 
Reviewed-by: @cf-zhao 
Signed-off-by: @cf-zhao
2024-08-21 02:58:49 +00:00
liyunfei
6aa107f094 Add BiSheng Autotuner support
Signed-off-by: liyunfei <liyunfei33@huawei.com>
2024-08-20 19:43:56 +08:00
openeuler-ci-bot
3a34d3806b
!41 Add toolchain_clang build support
From: @liyunfei33 
Reviewed-by: @cf-zhao 
Signed-off-by: @cf-zhao
2024-07-12 13:48:55 +00:00
liyunfei
844c7f9f7e Add toolchain_clang build support
Signed-off-by: liyunfei <liyunfei33@huawei.com>
2024-07-08 11:18:45 +08:00
openeuler-ci-bot
039493bc97
!38 [Backport][LoongArch] Improve the support for compiler-rt
From: @ami-zhang 
Reviewed-by: @cf-zhao 
Signed-off-by: @cf-zhao
2024-04-09 07:16:21 +00:00
Ami-zhang
c39a3c6738 [Backport][LoongArch] Improve the support for compiler-rt 2024-04-03 11:02:33 +08:00
7 changed files with 78 additions and 27 deletions

View File

@ -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

View File

@ -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.

Binary file not shown.

Binary file not shown.

View File

@ -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