Use a better workaround for Clang.

This commit is contained in:
Vitaly Zaitsev 2021-01-22 15:08:50 +01:00
parent f45e5d7be2
commit 428ab41706
No known key found for this signature in database
GPG Key ID: BF99FC6DD45AB90A
1 changed files with 9 additions and 4 deletions

View File

@ -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 \