Skip to content

Commit

Permalink
kpatch-build: Always do LLVM=1 with CONFIG_CC_IS_CLANG
Browse files Browse the repository at this point in the history
This will make sure NM, AR, etc. are set properly.

Signed-off-by: Song Liu <[email protected]>
  • Loading branch information
liu-song-6 committed May 30, 2024
1 parent c147ddf commit cdf423a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kpatch-build/kpatch-build
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit cdf423a

Please sign in to comment.