Make mlir use the llvm-snapshot-builder

This commit is contained in:
Konrad Kleine 2022-06-13 09:32:53 +02:00
parent 4fd2cd92f2
commit cde76c9b71
2 changed files with 19 additions and 0 deletions

11
.copr/Makefile Normal file
View File

@ -0,0 +1,11 @@
# See https://docs.pagure.org/copr.copr/user_documentation.html#make-srpm
# See for the --setopt option in the enabling of copr repo see:
# https://pagure.io/copr/copr/issue/184
.PHONY: srpm
srpm:
dnf install -y dnf-plugins-core fedora-packager
dnf copr enable -y --setopt=reposdir=/tmp/yum.repos.d @fedora-llvm-team/llvm-snapshot-builder
dnf install -y --setopt=reposdir=/tmp/yum.repos.d llvm-snapshot-builder
rpmdev-spectool --get-files --all --sourcedir mlir.spec
rpmbuild -bs mlir.spec
find $(shell rpm --eval "%{_srcrpmdir}") -name "*.src.rpm" -exec cp {} $(outdir) \;

View File

@ -1,3 +1,11 @@
%bcond_without snapshot_build
%if %{with snapshot_build}
# Unlock LLVM Snapshot LUA functions
%{llvm_sb_verbose}
%{llvm_sb}
%endif
#global rc_ver 3
%global maj_ver 13
%global min_ver 0