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 | |
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>
-rw-r--r-- | conf/nonclangable.conf | 6 | ||||
-rw-r--r-- | recipes-devtools/python/python3_%.bbappend | 7 |
2 files changed, 7 insertions, 6 deletions
diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index e16bdc0..81f03ef 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf | |||
@@ -93,12 +93,6 @@ TOOLCHAIN:pn-ppp = "gcc" | |||
93 | #| void *res = __builtin_apply((void (*)()) real_syscall, __builtin_apply_args(), sizeof(long) * 7); | 93 | #| void *res = __builtin_apply((void (*)()) real_syscall, __builtin_apply_args(), sizeof(long) * 7); |
94 | TOOLCHAIN:pn-pseudo = "gcc" | 94 | TOOLCHAIN:pn-pseudo = "gcc" |
95 | 95 | ||
96 | #| checking for multiarch... riscv64-yoe-linux | ||
97 | #| configure: error: internal configure error for the platform triplet, please file a bug report | ||
98 | TOOLCHAIN:pn-python3:riscv64 = "gcc" | ||
99 | TOOLCHAIN:pn-python3:riscv32 = "gcc" | ||
100 | TOOLCHAIN:pn-python3:libc-musl = "gcc" | ||
101 | |||
102 | # mix_neon.c:179:9: error: invalid operand in inline asm: 'vld1.s32 ${0:h}, [$2] | 96 | # mix_neon.c:179:9: error: invalid operand in inline asm: 'vld1.s32 ${0:h}, [$2] |
103 | # vld1.s32 ${1:h}, [$3] ' | 97 | # vld1.s32 ${1:h}, [$3] ' |
104 | TOOLCHAIN:pn-pulseaudio:armv7ve = "gcc" | 98 | TOOLCHAIN:pn-pulseaudio:armv7ve = "gcc" |
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 | |||