[Buildroot] [PATCH 1/4] llvm: fix build of host-llvm

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Nov 3 14:35:59 UTC 2018


Hello,

On Sat, 3 Nov 2018 15:15:30 +0100, Romain Naour wrote:

> > @@ -10,6 +10,7 @@ config BR2_PACKAGE_LLVM_TARGET_ARCH
> >  	default "AArch64" if BR2_aarch64
> >  	default "ARM" if BR2_arm || BR2_armeb
> >  	default "X86" if BR2_i386 || BR2_x86_64
> > +	default "host"  
> 
> I'm not sure this is the correct thing to do since BR2_PACKAGE_LLVM_TARGET_ARCH
> will be used for the target variant.
> 
> "host" stand for "automatic detection"
> 
> Maybe you want to add "X86" along with LLVM_TARGETS_TO_BUILD for host-llvm ?
> 
> Something like:
> 
> HOST_LLVM_TARGETS_TO_BUILD = $(LLVM_TARGETS_TO_BUILD) X86

For the host, it makes sense to use "automatic detection", so what
about:

HOST_LLVM_TARGETS_TO_BUILD = $(LLVM_TARGETS_TO_BUILD) host

i.e, have support for the target architecture, but also the
architecture ?

However, presumably, LLVM may not have support for all host
architectures, so this calls for a BR2_PACKAGE_HOST_LLVM_ARCH_SUPPORTS ?

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list