]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
clang-native: Add class to use clang as native compiler
authorKhem Raj <raj.khem@gmail.com>
Wed, 2 Jul 2025 05:32:16 +0000 (22:32 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Jul 2025 09:38:25 +0000 (10:38 +0100)
commit43ba5ed17e069b13cd43c36650524a0113c81955
treeafd2d048397641959d098a3e3c093ae095eda095
parent12539d529c6af3d4a56ff4f1e1420e7e4d169804
clang-native: Add class to use clang as native compiler

Some recipes demand full clang/llvm builds e.g. chromium we need to use
clang as native toolchain. This class collects all needed bits to enable
OE built clang to provide the clang native toolchain

Setting

TOOLCHAIN_NATIVE = "clang"

in recipe will chose clang for native toolchain

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/toolchain/clang-native.bbclass [new file with mode: 0644]