From 63232293428b14d70cbd2f700b1d34aade6f9c70 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 25 Aug 2022 11:36:57 +0100 Subject: 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 --- meta/recipes-devtools/rust/rust_1.63.0.bb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/recipes-devtools/rust/rust_1.63.0.bb') 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" FILES:${PN} += "${libdir}/*.so" FILES:${PN}-dev = "" +# Used by crossbeam_atomic.patch +export TARGET_VENDOR + do_compile () { rust_runx build --stage 2 } -- cgit v1.2.3-54-g00ecf