meta-rust-bin icon indicating copy to clipboard operation
meta-rust-bin copied to clipboard

How to specify a certain version of rustc

Open hellow554 opened this issue 3 years ago • 2 comments

What information should I include in my recipe, do tell yocto which version of rust it should use? E.g. I want my code to compile with Rust 1.43.0, (e.g. because of a regression).

hellow554 avatar Sep 25 '20 06:09 hellow554

@hellow554 You can use PREFERRED_VERSION for the rust-bin-cross-* and cargo-bin-cross-* recipes. For example, if my target is ARM:

PREFERRED_VERSION_rust-bin-cross-arm ?= "1.43.0"
PREFERRED_VERSION_cargo-bin-cross-arm ?= "${PREFERRED_VERSION_rust-bin-cross-arm}"

nastevens avatar Sep 28 '20 20:09 nastevens

Thanks! Would this something for the readme?

hellow554 avatar Sep 29 '20 18:09 hellow554