From cc9d6c0ac02f06935612c75dda24401b6548a9d7 Mon Sep 17 00:00:00 2001 From: jammyjellyfish Date: Fri, 14 Apr 2023 21:44:02 +0800 Subject: [PATCH] Support build with clang (cherry picked from commit 7636221ecefff609e1ce3ff828343bdf77f205a6) --- grubby.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/grubby.spec b/grubby.spec index 3a697ed..5b8922a 100644 --- a/grubby.spec +++ b/grubby.spec @@ -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