Use a better workaround for Clang.
This commit is contained in:
parent
f45e5d7be2
commit
428ab41706
13
nheko.spec
13
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 \
|
||||
|
Loading…
Reference in New Issue
Block a user