On 29.11.2024 02:49, Volodymyr Babchuk wrote: > Currently, even if we are using clang as a C compiler, we still use > GNU binutils. This patch adds new option "llvm" that allows to use > linker, objcopy and all other tools from LLVM project. As LLVM tools > use different approach for cross-compilation, we don't need > CROSS_COMPILE prefix in this case.
This new option is meant to control both toolstack and hypervisor builds? As to the latter, I assume you're aware we're trying to move away from this kind of command line control of the build. How is this intended to interact with the existing $(clang) that we have? In the cover letter you appear to only care about the clang=y llvm=y case, while ... > --- a/config/StdGNU.mk > +++ b/config/StdGNU.mk > @@ -19,20 +19,4 @@ OBJCOPY = $(CROSS_COMPILE)objcopy > OBJDUMP = $(CROSS_COMPILE)objdump > SIZEUTIL = $(CROSS_COMPILE)size ... even up from here there are uses of $(clang). Also please Cc Anthony on build system changes. Jan