What’s the go-to way nowadays to build a libstd for some target that rustc knows but does not ship libstd for?
locally? probably just
x.py build --target <target> src/libtest, possibly with --stage 1
and if you want it in some other project I suspect -Zbuild-std would also just work
I want to test a target that does not have a libstd prebuilt in github actions. So preferably it does not involve pulling down the whole rust repo.
-Zbuild-std might just work.
I think you need the rust-src component for build-std, but that'd be my recommendation
if it doesn't work I guess xargo or something might
Turns out getting
gcc toolchain for said targets is likely to be the biggest problem. I filled https://github.com/rust-lang/wg-cargo-std-aware/issues/54 for that..
In the slight chance that it is helpful, Miri can run code for pretty much any target without a toolchain. ;)