diff --git a/llvm.spec b/llvm.spec index 47fc7f9..4ea0b33 100644 --- a/llvm.spec +++ b/llvm.spec @@ -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