diff options
| author | Tim Orling <ticotimo@gmail.com> | 2022-01-18 10:56:52 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-01-19 08:58:09 -0800 |
| commit | d0a8873a66183b96e7be1108dca4aadf6a71281a (patch) | |
| tree | 9f4c6d958b9e849550407f6860734961f8c0a8af /meta-python/recipes-devtools/python/python3-pyruvate_1.1.2.bb | |
| parent | 75d96e4648fcc8f65b6b6af1b73cabb5e1d1d8e6 (diff) | |
| download | meta-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.bb | 8 |
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 | ||
| 15 | inherit pypi setuptools3_rust | 15 | inherit 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 | ||
| 20 | RUSTFLAGS:append:mips = " --cfg crossbeam_no_atomic_64" | ||
| 21 | RUSTFLAGS:append:mipsel = " --cfg crossbeam_no_atomic_64" | ||
| 22 | RUSTFLAGS:append:powerpc = " --cfg crossbeam_no_atomic_64" | ||
| 23 | RUSTFLAGS:append:riscv32 = " --cfg crossbeam_no_atomic_64" | ||
| 24 | |||
| 17 | SRC_URI += " \ | 25 | SRC_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 \ |
