This commit is contained in:
Konrad Kleine 2021-10-18 12:33:11 +02:00
parent 02f2d0a98e
commit ed32b03ec2
1 changed files with 6 additions and 5 deletions

View File

@ -97,18 +97,19 @@ find ../* -maxdepth 0 ! -name '%{name}' -exec rm -rf {} +
export LD_LIBRARY_PATH=%{_builddir}/%{mlir_srcdir}/%{name}/%{_build}/%{_lib}
%cmake_build
%if %{with snapshot_build}
rm -Rfv %{_libdir}/objects-RelWithDebInfo/obj.MLIRCAPI*
rm -Rfv %{_libdir}/objects-RelWithDebInfo/obj.MLIRCEXECUTIONENGINE
%endif
%install
%cmake_install
%if %{with snapshot_build}
rm -Rfv %{_libdir}/objects-RelWithDebInfo/obj.MLIRCAPI*
rm -Rfv %{_libdir}/objects-RelWithDebInfo/obj.MLIRCEXE
%endif
%check
%if %{with check}
# build process .exe tools normally use rpath or static linkage
%cmake_build --target check-mlir || true
%endif
%files
%license LICENSE.TXT