From cde76c9b7114f5b9eb124cc2e80b6a0eb1332997 Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Mon, 13 Jun 2022 09:32:53 +0200 Subject: [PATCH] Make mlir use the llvm-snapshot-builder --- .copr/Makefile | 11 +++++++++++ mlir.spec | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 .copr/Makefile diff --git a/.copr/Makefile b/.copr/Makefile new file mode 100644 index 0000000..8c9e64c --- /dev/null +++ b/.copr/Makefile @@ -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) \; diff --git a/mlir.spec b/mlir.spec index f564890..89929f7 100644 --- a/mlir.spec +++ b/mlir.spec @@ -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