diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-25 11:36:57 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-31 10:40:07 +0100 |
commit | 63232293428b14d70cbd2f700b1d34aade6f9c70 (patch) | |
tree | 84316dfd3a93138a4be60413f3246ae161cf515b /meta/recipes-devtools/rust/rust_1.63.0.bb | |
parent | a19e278f2ec5fed8b4647c7541254bcb96bcdabc (diff) | |
download | poky-63232293428b14d70cbd2f700b1d34aade6f9c70.tar.gz |
rust: Fix crossbeam-utils for arches without atomics
crossbeam-utils tries to use the triplet to look up whether the target
supports various forms of atomics. We use TARGET_VENDOR and not "-unknown"
in the target case which means this fails and breaks platforms like mips
and powerpc 32 bit. Add a patch to handle TARGET_VENDOR in this case.
(From OE-Core rev: 5d8c01dfed4c82fcc5d504c728a51fb98a262300)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rust/rust_1.63.0.bb')
-rw-r--r-- | meta/recipes-devtools/rust/rust_1.63.0.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/rust_1.63.0.bb b/meta/recipes-devtools/rust/rust_1.63.0.bb index 3081cd5ef3..401d51041e 100644 --- a/meta/recipes-devtools/rust/rust_1.63.0.bb +++ b/meta/recipes-devtools/rust/rust_1.63.0.bb | |||
@@ -7,6 +7,9 @@ FILES:${PN} += "${libdir}/rustlib" | |||
7 | FILES:${PN} += "${libdir}/*.so" | 7 | FILES:${PN} += "${libdir}/*.so" |
8 | FILES:${PN}-dev = "" | 8 | FILES:${PN}-dev = "" |
9 | 9 | ||
10 | # Used by crossbeam_atomic.patch | ||
11 | export TARGET_VENDOR | ||
12 | |||
10 | do_compile () { | 13 | do_compile () { |
11 | rust_runx build --stage 2 | 14 | rust_runx build --stage 2 |
12 | } | 15 | } |