]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
libstd-rs: Move source directory to library/test
authorAlex Kiernan <alex.kiernan@gmail.com>
Wed, 21 Dec 2022 12:52:58 +0000 (12:52 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 26 Dec 2022 10:29:14 +0000 (10:29 +0000)
Building libstd-rs from library/std omits proc_macro from the sysroot.
Using library/test causes that to be installed which then allows cargo
to build (https://github.com/meta-rust/meta-rust/issues/266)

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rust/libstd-rs_1.66.0.bb

index 6c5a979f4f2312b409905fcc2c8e5ee7a6d09374..8802e9790ce43d69b871b3a35e0f8c85321b583b 100644 (file)
@@ -6,8 +6,10 @@ LIC_FILES_CHKSUM = "file://../../COPYRIGHT;md5=92289ed52a60b63ab715612ad2915603"
 
 require rust-source.inc
 
-# libstd moved from src/libstd to library/std in 1.47+
-S = "${RUSTSRC}/library/std"
+# Building with library/std omits proc_macro from the sysroot. Using
+# library/test causes that to be installed which then allows cargo to
+# build (https://github.com/meta-rust/meta-rust/issues/266)
+S = "${RUSTSRC}/library/test"
 
 RUSTLIB_DEP = ""
 inherit cargo