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-19 15:56:27 -03:00
parent e602c81dd7
commit 11654dc9a7

View file

@ -1,4 +1,10 @@
%bcond_with 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