From 76c5c0d6fa35bac07aacefbf9647f60bb6086c41df21fc6dd29c6e35c6ae0467 Mon Sep 17 00:00:00 2001 From: Aaron Puchert Date: Sun, 24 Mar 2024 13:52:56 +0000 Subject: [PATCH] - Stick to ld.lld on %{arm}: ld.bfd + LLVMgold.so doesn't work. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm18?expand=0&rev=6 --- llvm18.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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