diff mbox series

[v2,2/2] packagegroup-core-buildessential: Add clang with clang toolchain

Message ID 20261126165819.1624670-2-khem.raj@oss.qualcomm.com
State New
Headers show
Series [v2,1/2] compiler-rt: Add option to provide libatomic instead of gcc-runtime | expand

Commit Message

Khem Raj Nov. 26, 2026, 4:58 p.m. UTC
When the target is built with the clang toolchain, python's sysconfig
and perl's Config record ${TARGET_PREFIX}clang as the C compiler, so
anything compiling on the target through them fails when only gcc is
installed:

  FileNotFoundError: [Errno 2] No such file or directory: 'x86_64-yoe-linux-clang'

The target clang package installs the ${TARGET_PREFIX}clang symlinks.
Add it to packagegroup-core-buildessential

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Cc: Ross Burton <Ross.Burton@arm.com>
Cc: Paul Barker <paul@pbarker.dev>
---
v2: Drop anon python from ptest.bbclass, it slows things down

 .../packagegroups/packagegroup-core-buildessential.bb            | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/recipes-core/packagegroups/packagegroup-core-buildessential.bb b/meta/recipes-core/packagegroups/packagegroup-core-buildessential.bb
index 2cd67ad05f..d33af54d26 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-buildessential.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-buildessential.bb
@@ -29,3 +29,4 @@  RDEPENDS:packagegroup-core-buildessential = "\
     pkgconfig \
     "

+RDEPENDS:packagegroup-core-buildessential:append:toolchain-clang = " clang"