diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-09-15 20:12:21 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-09-17 16:55:30 -0700 |
| commit | feb6b28ce2c07c870d7a2fe6bc82db4bbf2c4e54 (patch) | |
| tree | f393d1e66f1c5419258982191658ef36b7a36710 /recipes-devtools/python | |
| parent | acc6994c3e389e0e4851d549fd9ada564340a714 (diff) | |
| download | meta-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_%.bbappend | 7 |
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 @@ | |||
| 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" | ||
| 2 | |||
| 3 | do_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 | |||
