Blame 0112-kpatch-build-Always-do-LLVM-1-with-CONFIG_CC_IS_CLAN.patch

f6c393
From cdf423a52d78a0c2b92bd1714021fbd6d1e5c8a8 Mon Sep 17 00:00:00 2001
f6c393
From: Song Liu <song@kernel.org>
f6c393
Date: Thu, 30 May 2024 11:49:47 -0700
f6c393
Subject: [PATCH 112/112] kpatch-build: Always do LLVM=1 with
f6c393
 CONFIG_CC_IS_CLANG
f6c393
f6c393
This will make sure NM, AR, etc. are set properly.
f6c393
f6c393
Signed-off-by: Song Liu <song@kernel.org>
f6c393
---
f6c393
 kpatch-build/kpatch-build | 2 +-
f6c393
 1 file changed, 1 insertion(+), 1 deletion(-)
f6c393
f6c393
diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build
f6c393
index 29624da..3dec7c9 100755
f6c393
--- a/kpatch-build/kpatch-build
f6c393
+++ b/kpatch-build/kpatch-build
f6c393
@@ -1164,9 +1164,9 @@ declare -a MAKEVARS
f6c393
 if [[ -n "$CONFIG_CC_IS_CLANG" ]]; then
f6c393
 	MAKEVARS+=("CC=${KPATCH_CC_PREFIX}${CLANG}")
f6c393
 	MAKEVARS+=("HOSTCC=clang")
f6c393
+	MAKEVARS+=("LLVM=1")
f6c393
 	if [[ -n "$CONFIG_PGO_CLANG" ]]; then
f6c393
 		MAKEVARS+=("CFLAGS_PGO_CLANG=-fprofile-use=$PROFILE_DATA")
f6c393
-		MAKEVARS+=("LLVM=1")
f6c393
 	fi
f6c393
 else
f6c393
 	MAKEVARS+=("CC=${KPATCH_CC_PREFIX}${GCC}")
f6c393
-- 
f6c393
2.45.1
f6c393