summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/python
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-09-15 20:12:21 -0700
committerKhem Raj <raj.khem@gmail.com>2022-09-17 16:55:30 -0700
commitfeb6b28ce2c07c870d7a2fe6bc82db4bbf2c4e54 (patch)
treef393d1e66f1c5419258982191658ef36b7a36710 /recipes-devtools/python
parentacc6994c3e389e0e4851d549fd9ada564340a714 (diff)
downloadmeta-clang-feb6b28ce2c07c870d7a2fe6bc82db4bbf2c4e54.tar.gz
python: Enable build with clang on target
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools/python')
-rw-r--r--recipes-devtools/python/python3_%.bbappend7
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-devtools/python/python3_%.bbappend b/recipes-devtools/python/python3_%.bbappend
new file mode 100644
index 0000000..a4d8b49
--- /dev/null
+++ b/recipes-devtools/python/python3_%.bbappend
@@ -0,0 +1,7 @@
1FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
2
3do_configure:prepend:class-target:toolchain-clang() {
4 # We do not need --print-multiarch with clang since it prints wrong value
5 sed -i -e 's#\[MULTIARCH=$($CC --print-multiarch 2>/dev/null)\]#\[MULTIARCH=""\]#g' ${S}/configure.ac
6}
7