]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
clang: use llvm recipe
authorRoss Burton <ross.burton@arm.com>
Tue, 7 Oct 2025 10:42:46 +0000 (11:42 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Oct 2025 09:27:02 +0000 (10:27 +0100)
commitd76dc362c8e18779cc4ddc6a778fb423c0e66a65
tree0e51f128769ddf0264fdd2ee280b4e839f47487d
parent448f4a84cb22c380d97e069d0b98ddbe1cb8de18
clang: use llvm recipe

Change this recipe to build just clang and clang-tools-extra, using the
LLVM provided by the llvm recipe.

This adds an 'extra-tools' PACKAGECONFIG (enabled by default) that
controls whether to build the clang-tools-extra project. This includes
clang-tidy and clangd, but the compile time and size for these
components is not insignificant.

Add a patch from upstream to support using native prebuilt tools (such
as clang-tblgen) when building standalone.

Add a patch that is being worked on with upstream to not rebuild clang-
tblgen if it has already been provided. This saves a little build time,
but more importantly for us resolves a static linking/uninative problem.

Remove the dependency on clang-cross in non-native builds by just
depending on llvm-native and using the un-prefixed tools directly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/clang/clang/0001-clang-Support-building-native-tools-when-cross-compi.patch [new file with mode: 0644]
meta/recipes-devtools/clang/clang/clang-no-tblgen.patch [new file with mode: 0644]
meta/recipes-devtools/clang/clang_git.bb
meta/recipes-devtools/clang/common.inc