Change the install folder

This commit is contained in:
cf_zhao 2023-07-07 12:10:06 +08:00
parent 7f439e89b0
commit 9ffdde12ad
3 changed files with 51 additions and 51 deletions

View File

@ -2,21 +2,9 @@
#### Description #### Description
The MLIR project is a novel approach to building reusable and extensible compiler infrastructure. The MLIR project is a novel approach to building reusable and extensible compiler infrastructure.
MLIR aims to address software fragmentation, improve compilation for heterogeneous hardware,
#### Software Architecture significantly reduce the cost of building domain specific compilers, and aid in connecting
Software architecture description existing compilers together.
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution #### Contribution

View File

@ -2,22 +2,9 @@
#### 介绍 #### 介绍
The MLIR project is a novel approach to building reusable and extensible compiler infrastructure. The MLIR project is a novel approach to building reusable and extensible compiler infrastructure.
MLIR aims to address software fragmentation, improve compilation for heterogeneous hardware,
#### 软件架构 significantly reduce the cost of building domain specific compilers, and aid in connecting
软件架构说明 existing compilers together.
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献 #### 参与贡献

View File

@ -1,6 +1,22 @@
Name: llvm-mlir %global maj_ver 12
Version: 12.0.1 %global min_ver 0
Release: 0 %global patch_ver 1
%global mlir_version %{maj_ver}.%{min_ver}.%{patch_ver}
%global pkg_name llvm-mlir%{maj_ver}
%global install_prefix %{_libdir}/llvm%{maj_ver}
%global install_bindir %{install_prefix}/bin
%if 0%{?__isa_bits} == 64
%global install_libdir %{install_prefix}/lib64
%else
%global install_libdir %{install_prefix}/lib
%endif
%global install_includedir %{install_prefix}/include
Name: %{pkg_name}
Version: %{mlir_version}
Release: 1
Summary: The MLIR project is a novel approach to building reusable and extensible compiler infrastructure. Summary: The MLIR project is a novel approach to building reusable and extensible compiler infrastructure.
License: Apache 2.0 License: Apache 2.0
URL: https://mlir.llvm.org/ URL: https://mlir.llvm.org/
@ -8,10 +24,15 @@ Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{versio
Patch0: 0001-PATCH-mlir-Support-building-MLIR-standalone.patch Patch0: 0001-PATCH-mlir-Support-building-MLIR-standalone.patch
Patch1: 0002-PATCH-mlir-Fix-building-unittests-in-in-tree-build.patch Patch1: 0002-PATCH-mlir-Fix-building-unittests-in-in-tree-build.patch
BuildRequires: gcc gcc-c++ cmake ninja-build zlib-devel python3-lit llvm-devel BuildRequires: gcc gcc-c++ cmake ninja-build zlib-devel python3-lit
BuildRequires: llvm%{maj_ver}-devel = %{version}
BuildRequires: llvm%{maj_ver}-test = %{version}
%description %description
The MLIR project is a novel approach to building reusable and extensible compiler infrastructure. MLIR aims to address software fragmentation, improve compilation for heterogeneous hardware, significantly reduce the cost of building domain specific compilers, and aid in connecting existing compilers together. The MLIR project is a novel approach to building reusable and extensible compiler infrastructure.
MLIR aims to address software fragmentation, improve compilation for heterogeneous hardware,
significantly reduce the cost of building domain specific compilers, and aid in connecting
existing compilers together.
%package static %package static
Summary: MLIR static files Summary: MLIR static files
@ -37,8 +58,9 @@ find ../* -maxdepth 0 ! -name "mlir" -exec rm -rf {} +
%cmake -G Ninja \ %cmake -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_SKIP_RPATH=ON \ -DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \ -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
-DCMAKE_PREFIX_PATH=%{_libdir}/cmake/llvm/ \ -DCMAKE_PREFIX_PATH=%{install_libdir}/cmake/llvm/ \
-DLLVM_BUILD_UTILS:BOOL=ON \ -DLLVM_BUILD_UTILS:BOOL=ON \
-DMLIR_INCLUDE_DOCS:BOOL=ON \ -DMLIR_INCLUDE_DOCS:BOOL=ON \
-DMLIR_INCLUDE_TESTS:BOOL=OFF \ -DMLIR_INCLUDE_TESTS:BOOL=OFF \
@ -63,26 +85,29 @@ find ../* -maxdepth 0 ! -name "mlir" -exec rm -rf {} +
%files %files
%license LICENSE.TXT %license LICENSE.TXT
%{_libdir}/libMLIR*.so.* %{install_libdir}/libMLIR*.so.*
%{_libdir}/libmlir_runner_utils.so.* %{install_libdir}/libmlir_runner_utils.so.*
%{_libdir}/libmlir_c_runner_utils.so.* %{install_libdir}/libmlir_c_runner_utils.so.*
%{_libdir}/libmlir_async_runtime.so.* %{install_libdir}/libmlir_async_runtime.so.*
%files static %files static
%{_libdir}/libMLIR*.a %{install_libdir}/libMLIR*.a
%{_libdir}/libmlir_c_runner_utils_static.a %{install_libdir}/libmlir_c_runner_utils_static.a
%files devel %files devel
%{_bindir}/mlir-tblgen %{install_bindir}/mlir-tblgen
%{_libdir}/libMLIR*.so %{install_libdir}/libMLIR*.so
%{_libdir}/libmlir_runner_utils.so %{install_libdir}/libmlir_runner_utils.so
%{_libdir}/libmlir_c_runner_utils.so %{install_libdir}/libmlir_c_runner_utils.so
%{_libdir}//libmlir_async_runtime.so %{install_libdir}//libmlir_async_runtime.so
%{_includedir}/mlir %{install_includedir}/mlir
%{_includedir}/mlir-c %{install_includedir}/mlir-c
%{_libdir}/cmake/mlir %{install_libdir}/cmake/mlir
%changelog %changelog
* Fri Jul 7 2023 cf-zhao <zhaochuanfeng@huawei.com> - 12.0.1-1
- Change the install folder
* Wed Nov 16 2022 liyancheng <412998149@qq.com> - 12.0.1-0 * Wed Nov 16 2022 liyancheng <412998149@qq.com> - 12.0.1-0
- Type:Init - Type:Init
- ID:NA - ID:NA