On Thu, Jan 29, 2026 at 09:03:21AM -0800, Song Liu wrote: > When the kernel is built with clang/llvm, it is expected to run make > with "make LLVM=1 ...". The same is needed when building livepatches. > > Use CONFIG_CC_IS_CLANG as the flag to detect kernel built with > clang/llvm, and add LLVM=1 to make commands from klp-build > > Signed-off-by: Song Liu <[email protected]>
Peter informed me that "LLVM=" has different syntaxes: LLVM=1 LLVM=-22 LLVM=/opt/llvm/ Debian has parallel llvm (and gcc) toolchains, and suffixes them with -$ver. So we dropped this patch for now. "export LLVM=1" still works. Not sure if you have any other ideas? At the very least we should probably check that LLVM=<whatever> and/or CC=clang are set appropriately before doing a CONFIG_CC_IS_CLANG build, and error out if not. -- Josh
