diff --git a/llvm18.spec b/llvm18.spec index 29fd0ff..e586ef4 100644 --- a/llvm18.spec +++ b/llvm18.spec @@ -41,8 +41,12 @@ %bcond_with openmp %endif -# Always use ld.bfd for now because it produces a THP-compatible section layout. +# Prefer ld.bfd for now because it produces a THP-compatible section layout. +%ifnarch %{arm} %bcond_with use_lld +%else +%bcond_without use_lld +%endif %ifarch aarch64 x86_64 %bcond_without lldb