From 7c3eefb457051f3b5f518b88d2d060ee34bb5b29 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 25 Aug 2023 11:02:21 -0700 Subject: python3: Add clang to rdeps for python3-ptests cppext test needs full toolchain as it tries to build an extention with C, using clang ensures that a function compiler bits are pulled into ptest image when using TOOLCHAIN = "clang" Signed-off-by: Khem Raj --- recipes-devtools/python/python3_%.bbappend | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes-devtools/python/python3_%.bbappend b/recipes-devtools/python/python3_%.bbappend index a4d8b49..08c783b 100644 --- a/recipes-devtools/python/python3_%.bbappend +++ b/recipes-devtools/python/python3_%.bbappend @@ -1,5 +1,9 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +# tests need compiler on target and they need the compiler which was +# used to build python +RDEPENDS:${PN}-ptest:append:toolchain-clang = " clang" + do_configure:prepend:class-target:toolchain-clang() { # We do not need --print-multiarch with clang since it prints wrong value sed -i -e 's#\[MULTIARCH=$($CC --print-multiarch 2>/dev/null)\]#\[MULTIARCH=""\]#g' ${S}/configure.ac -- cgit v1.2.3-54-g00ecf