Add toolchain switch support

This commit is contained in:
liyunfei 2023-08-22 20:02:53 +08:00
parent 25c7020d10
commit 03dedd2449

View File

@ -1,6 +1,6 @@
Name: pin-server Name: pin-server
Version: 0.4.0 Version: 0.4.0
Release: 13 Release: 14
Summary: Pin (Plug-IN framework) server provides plugin APIs for compiler optimization developers to develop optimization pass. Summary: Pin (Plug-IN framework) server provides plugin APIs for compiler optimization developers to develop optimization pass.
License: Apache 2.0 License: Apache 2.0
URL: https://gitee.com/openeuler/pin-server URL: https://gitee.com/openeuler/pin-server
@ -57,12 +57,10 @@ A demo for pin-server
%autopatch -p1 %autopatch -p1
%build
mkdir -p _build mkdir -p _build
cd _build cd _build
%{cmake} .. -DCMAKE_INSTALL_PREFIX=%{_usr} -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_SKIP_RPATH=ON -DMLIR_DIR=/usr/lib64/cmake/mlir -DLLVM_DIR=/usr/lib64/cmake/llvm %{cmake} .. -DCMAKE_INSTALL_PREFIX=%{_usr} -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_SKIP_RPATH=ON -DMLIR_DIR=/usr/lib64/cmake/mlir -DLLVM_DIR=/usr/lib64/cmake/llvm
%build
cd _build
%make_build %make_build
%install %install
@ -96,6 +94,12 @@ find %{_libdir} -type f -name "libMLIRServerAPI.so" -exec strip "{}" ";"
%config(noreplace) /etc/ld.so.conf.d/%{name}-%{_arch}.conf %config(noreplace) /etc/ld.so.conf.d/%{name}-%{_arch}.conf
%changelog %changelog
* Tue Aug 22 2023 liyunfei <liyunfei33@huawei.com> - 0.4.0-14
- Type:FIX
- ID:NA
- SUG:NA
- DESC:Add toolchain switch support
* Mon Aug 14 2023 dingguangya <dingguangya1@huawei.com> - 0.4.0-13 * Mon Aug 14 2023 dingguangya <dingguangya1@huawei.com> - 0.4.0-13
- Type:FIX - Type:FIX
- ID:NA - ID:NA