]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
clang: tell cross-builds of clang how to build natively
authorRoss Burton <ross.burton@arm.com>
Wed, 24 Sep 2025 12:08:33 +0000 (13:08 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Sep 2025 09:57:11 +0000 (10:57 +0100)
commit36b42975b975b4a5e3904e555e5ee00aba9c2f2b
tree5b0e30258b296f4dc9f3677e9e3497ee1339d078
parent93051e8730263cfc23e1230015a4789dac4914de
clang: tell cross-builds of clang how to build natively

If we pass CROSS_TOOLCHAIN_FLAGS_NATIVE to all the builds, instead of
just nativesdk, then clang can correctly build its own native tools as
needed.

This means we can stop manually installing clang-tidy-confusable-chars-gen
as clang-tidy will build it.  We (currently) still build the tblgen
binaries once as they're used in several recipes so there's likely value
in building those once.

Also consolidate the LLVM_TABLEGEN variables as they're not specific to
a particular class.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/clang/clang_git.bb