diff --git a/nheko.spec b/nheko.spec index 1617b34..84fb35c 100644 --- a/nheko.spec +++ b/nheko.spec @@ -8,10 +8,6 @@ %if %{with clang} %global toolchain clang -# https://bugzilla.redhat.com/show_bug.cgi?id=1918924 -%ifarch %{arm} -%global _lto_cflags %{nil} -%endif %endif Name: nheko @@ -95,6 +91,15 @@ for Matrix that feels more like a mainstream chat app. %build %cmake -G Ninja \ +%if %{with clang} + -DCMAKE_C_COMPILER=%{_bindir}/clang \ + -DCMAKE_CXX_COMPILER=%{_bindir}/clang++ \ + -DCMAKE_AR=%{_bindir}/llvm-ar \ + -DCMAKE_RANLIB=%{_bindir}/llvm-ranlib \ + -DCMAKE_LINKER=%{_bindir}/llvm-ld \ + -DCMAKE_OBJDUMP=%{_bindir}/llvm-objdump \ + -DCMAKE_NM=%{_bindir}/llvm-nm \ +%endif -DCMAKE_BUILD_TYPE=Release \ -DCOMPILE_QML:BOOL=OFF \ -DHUNTER_ENABLED:BOOL=OFF \