diff --git a/nheko.spec b/nheko.spec index b3e766f..51fbe4d 100644 --- a/nheko.spec +++ b/nheko.spec @@ -1,9 +1,13 @@ %undefine __cmake_in_source_build -%bcond_without clang +%bcond_with clang %if %{with clang} +%if 0%{?fedora} && 0%{?fedora} >= 33 +%global toolchain clang +%else %global optflags %(echo %{optflags} | sed -e 's/-mcet//g' -e 's/-fcf-protection//g' -e 's/-fstack-clash-protection//g' -e 's/$/ -Qunused-arguments -Wno-unknown-warning-option -Wno-deprecated-declarations/') %endif +%endif Name: nheko Version: 0.7.2