Automatically enable snapshot_build conditional

Package llvm-snapshot-builder is provided in the snapshot Copr
repository and defines llvm_sb.
This can be used to automatically enable the snapshot_build conditional
and avoid unintentional changes when merging rawhide <->
upstream-snapshot.
This commit is contained in:
Tulio Magno Quites Machado Filho 2024-03-20 08:59:05 -03:00
parent 6dd94cc7f3
commit f71ea40c77

View file

@ -1,4 +1,10 @@
%bcond_without snapshot_build
# Automatically enable snapshot_build if llvm_sb is defined.
# This usually is defined via package llvm-snapshot-builder.
%if %{defined llvm_sb}
%bcond_without snapshot_build
%else
%bcond_with snapshot_build
%endif
%if %{with snapshot_build}
# Unlock LLVM Snapshot LUA functions