Skip to content

Commit

Permalink
libstd-rs: Move source directory to library/test
Browse files Browse the repository at this point in the history
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 (meta-rust/meta-rust#266)

Signed-off-by: Alex Kiernan <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
  • Loading branch information
akiernan authored and rpurdie committed Dec 23, 2022
1 parent 35528af commit 55dbedb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions meta/recipes-devtools/rust/libstd-rs_1.66.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55dbedb

Please sign in to comment.