Skip to content

Commit

Permalink
python3: Add clang to rdeps for python3-ptests
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
kraj committed Aug 27, 2023
1 parent 1b32c92 commit 7c3eefb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipes-devtools/python/python3_%.bbappend
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7c3eefb

Please sign in to comment.