Support build with clang

(cherry picked from commit 7636221ecefff609e1ce3ff828343bdf77f205a6)
This commit is contained in:
jammyjellyfish 2023-04-14 21:44:02 +08:00 committed by openeuler-sync-bot
parent 0e6ba683d1
commit cc9d6c0ac0

View File

@ -68,6 +68,10 @@ meant to only be used for legacy compatibility users with existing grubby users.
%autosetup -n %{name}-%{version}-1 -p1
%build
%if "%toolchain" == "clang"
CFLAGS="$CFLAGS -Wno-error=logical-not-parentheses"
%endif
%make_build
%check