]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
clang: improve LLVM target selection logic
authorRoss Burton <ross.burton@arm.com>
Mon, 21 Jul 2025 13:24:24 +0000 (14:24 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Jul 2025 21:59:39 +0000 (22:59 +0100)
commit2273a0685757421f39541a352d77b67e5ba604d3
treec1a8284ad32e6bdbe2e68f63178e20d93781c5cc
parent33a8742a1280b4c6779a7aa487c2dd4a713babe6
clang: improve LLVM target selection logic

The GPU targets are incredibly slow to build, so if the DISTRO_FEATURES
doesn't include opengl or vulkan assume that the user will not be using
a GPU and disable them.

Alternatively, a distribution could state that they'll only be using
one of the backends, and set LLVM_TARGETS_GPU explicitly.

On my build machine, disabling the GPU targets reduces the build time of
clang-native from 21m to 16m.

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