!54 [sync] PR-46: 支持 clang 编译

From: @openeuler-sync-bot 
Reviewed-by: @znzjugod 
Signed-off-by: @znzjugod
This commit is contained in:
openeuler-ci-bot 2024-04-07 01:07:40 +00:00 committed by Gitee
commit 01e63586cc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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