diff mbox series

[5/5] classes/cython: also process .cpp files

Message ID 20250924120745.2883969-5-ross.burton@arm.com
State Accepted, archived
Commit 07f156731a9dd7cade56e1d64444dafa18f57e6f
Headers show
Series [1/5] lame: don't use -march=native when building with clang | expand

Commit Message

Ross Burton Sept. 24, 2025, 12:07 p.m. UTC
Some Python packages, such as python3-frozenlist, generate .cpp files
with cython so we should also process those.

Frustratingly this doesn't actually solve the reproducible problem with
frozenlist as the path is a temporary directory...

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/classes-recipe/cython.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/classes-recipe/cython.bbclass b/meta/classes-recipe/cython.bbclass
index dd9fc732bcb..9ae7a291345 100644
--- a/meta/classes-recipe/cython.bbclass
+++ b/meta/classes-recipe/cython.bbclass
@@ -4,5 +4,5 @@  do_compile[postfuncs] = "strip_cython_metadata"
 strip_cython_metadata() {
     # Remove the Cython Metadata headers that we don't need after the build, and
     # may contain build paths.
-    find ${S} -name "*.c" -print0 | xargs --no-run-if-empty --null sed -i -e "/BEGIN: Cython Metadata/,/END: Cython Metadata/d"
+    find ${S} \( -name "*.c" -o -name "*.cpp" \) -print0 | xargs --no-run-if-empty --null sed -i -e "/BEGIN: Cython Metadata/,/END: Cython Metadata/d"
 }