Make it easier to build libstd, liballoc, libcore, etc for cross compiled environments #32597
Labels
A-cross
Area: Cross compilation
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
This is really for those that do cross compiles and also for source based distros that cross compile. Right now you must build llvm, rustc, and libstd for each platform you intend to target but the idea here would be you build llvm, rustc and libstd for your HOST and it should only need libstd (and its depends) to be a full cross compile environment. e.g.
It should be as simple as running:
cargo build --target=mips-unknown-linux-musl
orcargo build --target=i686-unknown-linux-gnu
A few projects are aiming to provide this or some subset of this but it seems like they run into limitations and have to massage parts of the Rust build system so it would be nice if the new rustbuild supported this use case.
The text was updated successfully, but these errors were encountered: