mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
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>
This commit is contained in:
@@ -14,6 +14,14 @@ S = "${WORKDIR}/pyruvate-${PV}"
|
||||
|
||||
inherit pypi setuptools3_rust
|
||||
|
||||
# crossbeam-* -> std::sync::atomic AtomicI64, AtomicU64
|
||||
# not supported on mips/powerpc with 32-bit pointers
|
||||
# https://doc.rust-lang.org/std/sync/atomic/#portability
|
||||
RUSTFLAGS:append:mips = " --cfg crossbeam_no_atomic_64"
|
||||
RUSTFLAGS:append:mipsel = " --cfg crossbeam_no_atomic_64"
|
||||
RUSTFLAGS:append:powerpc = " --cfg crossbeam_no_atomic_64"
|
||||
RUSTFLAGS:append:riscv32 = " --cfg crossbeam_no_atomic_64"
|
||||
|
||||
SRC_URI += " \
|
||||
crate://crates.io/aho-corasick/0.7.18 \
|
||||
crate://crates.io/atty/0.2.14 \
|
||||
|
||||
Reference in New Issue
Block a user