Blob Blame History Raw
From cdf423a52d78a0c2b92bd1714021fbd6d1e5c8a8 Mon Sep 17 00:00:00 2001
From: Song Liu <song@kernel.org>
Date: Thu, 30 May 2024 11:49:47 -0700
Subject: [PATCH 112/112] kpatch-build: Always do LLVM=1 with
 CONFIG_CC_IS_CLANG

This will make sure NM, AR, etc. are set properly.

Signed-off-by: Song Liu <song@kernel.org>
---
 kpatch-build/kpatch-build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build
index 29624da..3dec7c9 100755
--- a/kpatch-build/kpatch-build
+++ b/kpatch-build/kpatch-build
@@ -1164,9 +1164,9 @@ declare -a MAKEVARS
 if [[ -n "$CONFIG_CC_IS_CLANG" ]]; then
 	MAKEVARS+=("CC=${KPATCH_CC_PREFIX}${CLANG}")
 	MAKEVARS+=("HOSTCC=clang")
+	MAKEVARS+=("LLVM=1")
 	if [[ -n "$CONFIG_PGO_CLANG" ]]; then
 		MAKEVARS+=("CFLAGS_PGO_CLANG=-fprofile-use=$PROFILE_DATA")
-		MAKEVARS+=("LLVM=1")
 	fi
 else
 	MAKEVARS+=("CC=${KPATCH_CC_PREFIX}${GCC}")
-- 
2.45.1