summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pyruvate_1.1.2.bb
diff options
context:
space:
mode:
authorTim Orling <ticotimo@gmail.com>2022-01-18 10:56:52 -0800
committerKhem Raj <raj.khem@gmail.com>2022-01-19 08:58:09 -0800
commitd0a8873a66183b96e7be1108dca4aadf6a71281a (patch)
tree9f4c6d958b9e849550407f6860734961f8c0a8af /meta-python/recipes-devtools/python/python3-pyruvate_1.1.2.bb
parent75d96e4648fcc8f65b6b6af1b73cabb5e1d1d8e6 (diff)
downloadmeta-openembedded-d0a8873a66183b96e7be1108dca4aadf6a71281a.tar.gz
python3-pyruvate: disable 64 bit atomics for mips
Use the same approach as librsvg to disable 64-bit atomics on platforms which have 32-bit pointers or are otherwise not supported. https://github.com/crossbeam-rs/crossbeam/blob/master/no_atomic.rs https://doc.rust-lang.org/std/sync/atomic/#portability "PowerPC and MIPS platforms with 32-bit pointers do not have AtomicU64 or AtomicI64 types." Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pyruvate_1.1.2.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-pyruvate_1.1.2.bb8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pyruvate_1.1.2.bb b/meta-python/recipes-devtools/python/python3-pyruvate_1.1.2.bb
index 835cf9a93d..dad18b78c2 100644
--- a/meta-python/recipes-devtools/python/python3-pyruvate_1.1.2.bb
+++ b/meta-python/recipes-devtools/python/python3-pyruvate_1.1.2.bb
@@ -14,6 +14,14 @@ S = "${WORKDIR}/pyruvate-${PV}"
14 14
15inherit pypi setuptools3_rust 15inherit pypi setuptools3_rust
16 16
17# crossbeam-* -> std::sync::atomic AtomicI64, AtomicU64
18# not supported on mips/powerpc with 32-bit pointers
19# https://doc.rust-lang.org/std/sync/atomic/#portability
20RUSTFLAGS:append:mips = " --cfg crossbeam_no_atomic_64"
21RUSTFLAGS:append:mipsel = " --cfg crossbeam_no_atomic_64"
22RUSTFLAGS:append:powerpc = " --cfg crossbeam_no_atomic_64"
23RUSTFLAGS:append:riscv32 = " --cfg crossbeam_no_atomic_64"
24
17SRC_URI += " \ 25SRC_URI += " \
18 crate://crates.io/aho-corasick/0.7.18 \ 26 crate://crates.io/aho-corasick/0.7.18 \
19 crate://crates.io/atty/0.2.14 \ 27 crate://crates.io/atty/0.2.14 \